Removed some no longer needed ifdefs.

This commit is contained in:
irungentoo 2013-08-28 18:23:37 -04:00
parent e0779ed0a6
commit 00507fadfd
7 changed files with 0 additions and 48 deletions

View File

@ -26,10 +26,6 @@
#include "net_crypto.h"
#ifdef __cplusplus
extern "C" {
#endif
/* size of the client_id in bytes */
#define CLIENT_ID_SIZE crypto_box_PUBLICKEYBYTES
@ -186,8 +182,5 @@ int DHT_isconnected(DHT *dht);
void addto_lists(DHT *dht, IP_Port ip_port, uint8_t *client_id);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -35,10 +35,6 @@
#include <linux/netdevice.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
/*Send a LAN discovery pcaket to the broadcast address with port port*/
int send_LANdiscovery(uint16_t port, Net_Crypto *c);
@ -48,8 +44,4 @@ void LANdiscovery_init(DHT *dht);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -26,9 +26,6 @@
#include "network.h"
#ifdef __cplusplus
extern "C" {
#endif
/* maximum length of the data in the data packets */
#define MAX_DATA_SIZE 1024
@ -215,8 +212,5 @@ Lossless_UDP *new_lossless_udp(Networking_Core *net);
void kill_lossless_udp(Lossless_UDP *ludp);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -31,10 +31,6 @@
#include "friend_requests.h"
#include "LAN_discovery.h"
#ifdef __cplusplus
extern "C" {
#endif
#define MAX_NAME_LENGTH 128
#define MAX_STATUSMESSAGE_LENGTH 128
@ -344,8 +340,5 @@ void Messenger_save(Messenger *m, uint8_t *data);
/* load the messenger from data of size length */
int Messenger_load(Messenger *m, uint8_t *data, uint32_t length);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -27,9 +27,6 @@
#include "DHT.h"
#include "net_crypto.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
uint32_t nospam;
@ -63,8 +60,5 @@ void callback_friendrequest(Friend_Requests *fr, void (*function)(uint8_t *, uin
/* sets up friendreq packet handlers */
void friendreq_init(Friend_Requests *fr, Net_Crypto *c);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -26,10 +26,6 @@
#include "Lossless_UDP.h"
#ifdef __cplusplus
extern "C" {
#endif
#define MAX_INCOMING 64
#define CRYPTO_PACKET_FRIEND_REQ 32 /* Friend request crypto packet ID */
@ -193,8 +189,5 @@ void kill_net_crypto(Net_Crypto *c);
/* Init the cryptopacket handling */
void init_cryptopackets(void *dht);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -62,9 +62,6 @@
#define crypto_box_MACBYTES (crypto_box_ZEROBYTES - crypto_box_BOXZEROBYTES)
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define MAX_UDP_PACKET_SIZE 65507
@ -152,8 +149,4 @@ Networking_Core *new_networking(IP ip, uint16_t port);
void kill_networking(Networking_Core *net);
#ifdef __cplusplus
}
#endif
#endif