www.pudn.com > hipl.1.0.1.rar > connhipd.h


/* 
    HIP Agent 
     
    License: GNU/GPL 
    Authors: Antti Partanen  
*/ 
 
#ifndef CONNHIPD_H 
#define CONNHIPD_H 
 
/******************************************************************************/ 
/* INCLUDES */ 
#include  
//#include  
#include  
#include  
#include  
#include  
 
#ifndef __u32 
/* Fedore Core 3/4 and Enterprise linux 4 is broken. */ 
#  include  
#endif 
#include "linux/netlink.h" 
#include "linux/rtnetlink.h" 
//#include "workqueue.h" 
#include "icomm.h" 
 
#include "agent.h" 
#include "debug.h" 
#include "agent_tools.h" 
#include "hit_db.h" 
#include "gui_interface.h" 
 
 
/******************************************************************************/ 
/* DEFINES */ 
#define CONNHIPD_IN		0 
#define CONNHIPD_OUT	1 
 
 
/******************************************************************************/ 
/* Set up for C function definitions, even when using C++ */ 
#ifdef __cplusplus 
extern "C" { 
#endif 
/******************************************************************************/ 
 
 
/******************************************************************************/ 
/* FUNCTION DEFINITIONS */ 
int connhipd_init(void); 
int connhipd_sendto_hipd(char *, size_t); 
int connhipd_handle_msg(struct hip_common *, struct sockaddr_un *); 
int connhipd_thread(void *); 
void connhipd_quit(void); 
 
 
/******************************************************************************/ 
/* Ends C function definitions when using C++ */ 
#ifdef __cplusplus 
} 
#endif 
/******************************************************************************/ 
 
 
#endif /* END OF HEADER FILE */ 
/******************************************************************************/