aboutsummaryrefslogtreecommitdiffstats
path: root/ipc.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-01-19 17:34:41 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2006-01-19 17:34:41 +0100
commit2face6292c693afb45e5e04f87ba080931eb16c3 (patch)
tree60676ca503cd6bc610535fefe1490ddf48c337af /ipc.h
parent4c266f2d79212e4e0ff4b9b33088685a2ec452e4 (diff)
parent4c266f2d79212e4e0ff4b9b33088685a2ec452e4 (diff)
A bit too much for one commit, but well: Client processes didn't clean up
some master structs (bitlbee_child list) yet, and added the IPC CLIENT command to inform the master process about host- and nickname. Can be useful later.
Diffstat (limited to 'ipc.h')
-rw-r--r--ipc.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/ipc.h b/ipc.h
index 57037d61..56449a7c 100644
--- a/ipc.h
+++ b/ipc.h
@@ -26,19 +26,26 @@
#define BITLBEE_CORE
#include "bitlbee.h"
-void ipc_master_read( gpointer data, gint source, GaimInputCondition cond );
-void ipc_child_read( gpointer data, gint source, GaimInputCondition cond );
-
-void ipc_to_master( char **cmd );
-void ipc_to_master_str( char *msg_buf );
-void ipc_to_children( char **cmd );
-void ipc_to_children_str( char *msg_buf );
-
struct bitlbee_child
{
pid_t pid;
int ipc_fd;
gint ipc_inpa;
+
+ char *host;
+ char *nick;
+ char *realname;
};
+void ipc_master_read( gpointer data, gint source, GaimInputCondition cond );
+void ipc_child_read( gpointer data, gint source, GaimInputCondition cond );
+
+void ipc_master_free_one( struct bitlbee_child *child );
+void ipc_master_free_all();
+
+void ipc_to_master( char **cmd );
+void ipc_to_master_str( char *format, ... );
+void ipc_to_children( char **cmd );
+void ipc_to_children_str( char *format, ... );
+
extern GSList *child_list;