Commit 3b226410 authored by Cedric Roux's avatar Cedric Roux

cleanup

remove forward stuff from defs.h
remove defs.h from local.c and forward.c
parent b3889a44
...@@ -16,10 +16,6 @@ void iq_plot_set_sized(void *_plot, short *data, int len, int pp); ...@@ -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_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);
void *forwarder(int port);
void forward(void *forwarder, char *buf, int size);
void forward_start_client(void *forwarder, int socket);
/* T gui functions */ /* T gui functions */
void t_gui_start(void); void t_gui_start(void);
void t_gui_set_input_signal(int eNB, int frame, int subframe, int antenna, void t_gui_set_input_signal(int eNB, int frame, int subframe, int antenna,
......
#include "defs.h" #include "forward.h"
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <netinet/ip.h> #include <netinet/ip.h>
...@@ -9,6 +9,10 @@ ...@@ -9,6 +9,10 @@
#include <stdint.h> #include <stdint.h>
#include <inttypes.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 { typedef struct databuf {
char *d; char *d;
int l; int l;
...@@ -102,8 +106,6 @@ void forward_start_client(void *_f, int s) ...@@ -102,8 +106,6 @@ void forward_start_client(void *_f, int s)
new_thread(forward_s_to_sc, f); new_thread(forward_s_to_sc, f);
} }
int get_connection(char *addr, int port);
void *forwarder(int port) void *forwarder(int port)
{ {
forward_data *f; forward_data *f;
......
#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_ */
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#define DEFAULT_PORT 2021 #define DEFAULT_PORT 2021
#include "defs.h" #include "forward.h"
#include "../T_defs.h" #include "../T_defs.h"
......
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