Commit 7ef7fdfa authored by Cedric Roux's avatar Cedric Roux

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

parent 0a820ba1
#include "defs.h" #include "database.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
......
#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_ */
...@@ -16,13 +16,6 @@ void iq_plot_set_sized(void *_plot, short *data, int len, int pp); ...@@ -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_iq_point_loop(void *_plot, short i, short q, int pp);
void iq_plot_add_energy_point_loop(void *_plot, int e, 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 *forwarder(char *ip, int port);
void forward(void *forwarder, char *buf, int size); void forward(void *forwarder, char *buf, int size);
void forward_start_client(void *forwarder, int socket); void forward_start_client(void *forwarder, int socket);
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include <pthread.h> #include <pthread.h>
#include "defs.h" #include "defs.h"
#include "database.h"
#define DEFAULT_REMOTE_PORT 2020 #define DEFAULT_REMOTE_PORT 2020
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment