aboutsummaryrefslogtreecommitdiff
path: root/liblogdiag/ld-types.h
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2011-02-02 19:30:06 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2011-02-02 23:53:38 +0100
commit75c2358b6967c0148087638364b64da66667f8a2 (patch)
tree4a7119d8f07b74f9d4c3beef8a7ec82b5871135e /liblogdiag/ld-types.h
parentf864693f1bac4617f1ae8e42cd847ccf5e57055f (diff)
downloadlogdiag-75c2358b6967c0148087638364b64da66667f8a2.tar.gz
logdiag-75c2358b6967c0148087638364b64da66667f8a2.tar.xz
logdiag-75c2358b6967c0148087638364b64da66667f8a2.zip
Extend LdPointArray.
Diffstat (limited to 'liblogdiag/ld-types.h')
-rw-r--r--liblogdiag/ld-types.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/liblogdiag/ld-types.h b/liblogdiag/ld-types.h
index 04fedfa..29c0acc 100644
--- a/liblogdiag/ld-types.h
+++ b/liblogdiag/ld-types.h
@@ -45,21 +45,28 @@ gdouble ld_point_distance (LdPoint *self, gdouble x, gdouble y);
/**
* LdPointArray:
* @points: an array of #LdPoint structures.
- * @num_points: count of points in @points.
+ * @length: count of points in @points.
+ * @size: how many points can be stored in @points.
*
* Defines an array of points.
*/
struct _LdPointArray
{
LdPoint *points;
- gint num_points;
+ guint length;
+ guint size;
};
GType ld_point_array_get_type (void) G_GNUC_CONST;
-LdPointArray *ld_point_array_new (gint num_points);
+LdPointArray *ld_point_array_new (void);
+LdPointArray *ld_point_array_sized_new (guint preallocated);
LdPointArray *ld_point_array_copy (const LdPointArray *self);
void ld_point_array_free (LdPointArray *self);
+void ld_point_array_insert (LdPointArray *self, LdPoint *points,
+ gint pos, guint length);
+void ld_point_array_remove (LdPointArray *self, gint pos, guint length);
+void ld_point_array_set_size (LdPointArray *self, guint size);
/**