typedef void *(*pi_copy_f) (const void *);
typedef void (*pi_free_f) (void *);
-typedef int (*pi_serialize) (void *, char **, size_t *);
-typedef void *(*pi_unserialize) (char * size_t);
+typedef int (*pi_serialize_f) (void *, char **, size_t *);
+typedef void *(*pi_unserialize_f) (char *, size_t);
/*
* (Opaque) data types
* Object configuration
*/
int population_set_size (population_t *p, size_t population_size);
+int population_set_serialization (population_t *p,
+ pi_serialize_f serialize, pi_unserialize_f unserialize);
+
+#define POPULATION_DEFAULT_PORT "46835"
+int population_add_peer (population_t *p, const char *node, const char *port);
/*
* Methods