aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo_ipc.h
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2010-04-26 17:11:15 -0700
committerPeter Seebach <peter.seebach@windriver.com>2010-04-26 17:13:45 -0700
commit2cc5cc8fb02ce787753f2b3903864c7e1b98bd4d (patch)
tree16456f1998a2e3754393951e569292c0bea09ccf /pseudo_ipc.h
parent4038d0599e135ea0099a2392e0421bcc1d053825 (diff)
downloadpseudo-2cc5cc8fb02ce787753f2b3903864c7e1b98bd4d.tar.gz
pseudo-2cc5cc8fb02ce787753f2b3903864c7e1b98bd4d.tar.bz2
pseudo-2cc5cc8fb02ce787753f2b3903864c7e1b98bd4d.zip
Updates/improvements for logging
Send program name (program_invocation_name from glibc) along with the tag. Along the way, restructure the fds/pids/tags arrays to be an array of client structures in pseudo_server, and add the message type to the set of things logged -- logging that a message was a ping is more useful than appending the text "ping" to it. Add support for type and program to pseudolog. Add deletion to pseudolog. Handle usage message formatting when there's an odd number of known specifiers for pseudolog. Conflicts: ChangeLog.txt pseudo_server.c
Diffstat (limited to 'pseudo_ipc.h')
-rw-r--r--pseudo_ipc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/pseudo_ipc.h b/pseudo_ipc.h
index 063a1ef..664cbd2 100644
--- a/pseudo_ipc.h
+++ b/pseudo_ipc.h
@@ -18,6 +18,8 @@
*
*/
typedef enum {
+ PSEUDO_MSG_UNKNOWN = -1,
+ PSEUDO_MSG_NONE,
PSEUDO_MSG_PING,
PSEUDO_MSG_SHUTDOWN,
PSEUDO_MSG_OP,
@@ -25,6 +27,8 @@ typedef enum {
PSEUDO_MSG_NAK,
PSEUDO_MSG_MAX
} pseudo_msg_type_t;
+extern char *pseudo_msg_type_name(pseudo_msg_type_t id);
+extern pseudo_msg_type_t pseudo_msg_type_id(char *name);
/* The [] item at the end of the struct is a C99 feature, replacing the
* old (and unportable) "struct hack".