#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "evpath.h"
#include "ev_dfg.h"
typedef struct _simple_rec {
int integer_field;
} simple_rec, *simple_rec_ptr;
static FMField simple_field_list[] =
{
{"integer_field", "integer", sizeof(int), FMOffset(simple_rec_ptr, integer_field)},
{NULL, NULL, 0, 0}
};
static FMStructDescRec simple_format_list[] =
{
{"simple", simple_field_list, sizeof(simple_rec), NULL},
{NULL, NULL}
};
static int
simple_handler(CManager cm, void *vevent, void *client_data, attr_list attrs)
{
simple_rec_ptr event = vevent;
printf("I got %d\n", event->integer_field);
return 1;
}
void
join_handler_func(
EVmaster master,
char *identifier,
void*cur_unused1,
void*cur_unused2)
{
static int i = 0;
char *expected_nodes[] = {"a", "b", "c"};
i++;
if (i < sizeof(expected_nodes)/sizeof(expected_nodes[0])) {
return;
}
}
int main(int argc, char **argv)
{
CManager cm;
char *str_contact;
(void)argc; (void)argv;
cm = CManager_create();
CMlisten(cm);
printf("Contact list is \"%s\"\n", str_contact);
exit(1);
}
simple_rec rec;
rec.integer_field = 318;
}
} else {
} else {
}
}
}