diff options
author | beber <beber> | 2005-07-24 22:20:39 +0000 |
---|---|---|
committer | beber <beber> | 2005-07-24 22:20:39 +0000 |
commit | 898a49d61ac7061cc8839da6ba66972103f542dd (patch) | |
tree | b62dd217b910cd9a9abd599cf05c7476ceb21270 /src | |
parent | Move ebic to espik (diff) | |
download | espik-898a49d61ac7061cc8839da6ba66972103f542dd.tar.xz |
ebic -> espik
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 26 | ||||
-rw-r--r-- | src/error.h | 6 | ||||
-rw-r--r-- | src/global.h | 11 | ||||
-rw-r--r-- | src/struct.h | 23 |
4 files changed, 66 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..861950f --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,26 @@ +## Process this file with automake to produce Makefile.in + +AM_CFLAGS = -W -Wall -g \ + @ecore_cflags@ + +ESPIKHEADERS = \ + espik.h \ + espik_irc.h \ + espik_net.h \ + espik_config.h \ + espik_common_handler.h \ + struct.h \ + global.h + +espik_SOURCES = \ + espik.c \ + espik_irc.c \ + espik_net.c \ + espik_config.c \ + espik_common_handler.c \ + error.c \ + $(ESPIKHEADERS) + +espik_LDADD = @ecore_libs@ + +bin_PROGRAMS = espik diff --git a/src/error.h b/src/error.h new file mode 100644 index 0000000..bd8541e --- /dev/null +++ b/src/error.h @@ -0,0 +1,6 @@ +#ifndef _HAVE_ESPIK_ERROR_H +#define _HAVE_ESPIK_ERROR_H + +void chk_malloc (void *ptr); + +#endif /* _HAVE_ESPIK_ERROR_H */ diff --git a/src/global.h b/src/global.h new file mode 100644 index 0000000..0869c3e --- /dev/null +++ b/src/global.h @@ -0,0 +1,11 @@ +#ifndef _HAVE_ESPIK_GLOBAL_H +#define _HAVE_ESPIK_GLOBAL_H + +#define APPS_NAME "espik" +#define ESPIK_VERSION "0.0.1" + +#define MAX_LEN 512 + +#define __UNUSED__ __attribute__((unused)) + +#endif /* _HAVE_ESPIK_GLOBAL_H */ diff --git a/src/struct.h b/src/struct.h new file mode 100644 index 0000000..18e36a5 --- /dev/null +++ b/src/struct.h @@ -0,0 +1,23 @@ +#ifndef _HAVE_ESPIK_STRUCT_H +#define _HAVE_ESPIK_STRUCT_H + +typedef struct +{ + char *host; + unsigned short port; +} t_servinfo; + +typedef struct +{ + char *nickname; + char *username; + char *realname; /* gecos */ +} t_userinfo; + +typedef struct +{ + t_servinfo *server; + t_userinfo *client; +} t_info; + +#endif /* _HAVE_ESPIK_STRUCT_H */ |