cleanup
remove forward stuff from defs.h remove defs.h from local.c and forward.c
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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_ */
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
#define DEFAULT_PORT 2021
|
||||
|
||||
#include "defs.h"
|
||||
#include "forward.h"
|
||||
|
||||
#include "../T_defs.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user