add get_format to database

This commit is contained in:
Cedric Roux
2016-04-27 12:13:53 +02:00
parent 8e7ee86cc9
commit f0a704145b
2 changed files with 29 additions and 0 deletions
+12
View File
@@ -8,4 +8,16 @@ void list_ids(void *database);
void list_groups(void *database);
void on_off(void *d, char *item, int *a, int onoff);
/****************************************************************************/
/* get format of an event */
/****************************************************************************/
typedef struct {
char **type;
char **name;
int count;
} database_event_format;
database_event_format get_format(void *database, int event_id);
#endif /* _DATABASE_H_ */