create database.h, all in defs.h is messy

This commit is contained in:
Cedric Roux
2016-04-27 11:32:13 +02:00
parent 0a820ba1ce
commit 7ef7fdfa4a
4 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
#include "defs.h"
#include "database.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
+11
View File
@@ -0,0 +1,11 @@
#ifndef _DATABASE_H_
#define _DATABASE_H_
/* returns an opaque pointer - truly a 'database *', see database.c */
void *parse_database(char *filename);
void dump_database(void *database);
void list_ids(void *database);
void list_groups(void *database);
void on_off(void *d, char *item, int *a, int onoff);
#endif /* _DATABASE_H_ */
-7
View File
@@ -16,13 +16,6 @@ void iq_plot_set_sized(void *_plot, short *data, int len, int pp);
void iq_plot_add_iq_point_loop(void *_plot, short i, short q, int pp);
void iq_plot_add_energy_point_loop(void *_plot, int e, int pp);
/* returns an opaque pointer - truly a 'database *', see t_data.c */
void *parse_database(char *filename);
void dump_database(void *database);
void list_ids(void *database);
void list_groups(void *database);
void on_off(void *d, char *item, int *a, int onoff);
void *forwarder(char *ip, int port);
void forward(void *forwarder, char *buf, int size);
void forward_start_client(void *forwarder, int socket);
+1
View File
@@ -11,6 +11,7 @@
#include <pthread.h>
#include "defs.h"
#include "database.h"
#define DEFAULT_REMOTE_PORT 2020