remove forward stuff from defs.h
remove defs.h from local.c and forward.c
This commit is contained in:
Cedric Roux
2016-05-31 18:09:26 +02:00
parent b3889a44be
commit 3b226410d2
4 changed files with 14 additions and 8 deletions
-4
View File
@@ -16,10 +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);
void *forwarder(int port);
void forward(void *forwarder, char *buf, int size);
void forward_start_client(void *forwarder, int socket);
/* T gui functions */
void t_gui_start(void);
void t_gui_set_input_signal(int eNB, int frame, int subframe, int antenna,
+5 -3
View File
@@ -1,4 +1,4 @@
#include "defs.h"
#include "forward.h"
#include <stdlib.h>
#include <stdio.h>
#include <netinet/ip.h>
@@ -9,6 +9,10 @@
#include <stdint.h>
#include <inttypes.h>
/* from local.c */
int get_connection(char *addr, int port);
void new_thread(void *(*f)(void *), void *data);
typedef struct databuf {
char *d;
int l;
@@ -102,8 +106,6 @@ void forward_start_client(void *_f, int s)
new_thread(forward_s_to_sc, f);
}
int get_connection(char *addr, int port);
void *forwarder(int port)
{
forward_data *f;
+8
View File
@@ -0,0 +1,8 @@
#ifndef _FORWARD_H_
#define _FORWARD_H_
void *forwarder(int port);
void forward(void *forwarder, char *buf, int size);
void forward_start_client(void *forwarder, int socket);
#endif /* _FORWARD_H_ */
+1 -1
View File
@@ -11,7 +11,7 @@
#define DEFAULT_PORT 2021
#include "defs.h"
#include "forward.h"
#include "../T_defs.h"