Date: Sun, 29 Jul 2007 23:28:46 GMT From: Garrett Cooper <gcooper@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 124328 for review Message-ID: <200707292328.l6TNSkoZ096036@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=124328 Change 124328 by gcooper@optimus-revised_pkgtools on 2007/07/29 23:28:13 - Updating IPC comm API. - Add empty client and server IPC handlers. Affected files ... .. //depot/projects/soc2007/revised_fbsd_pkgtools/v2/lib/ipc/api.c#1 add .. //depot/projects/soc2007/revised_fbsd_pkgtools/v2/lib/ipc/api.h#2 edit .. //depot/projects/soc2007/revised_fbsd_pkgtools/v2/lib/ipc/client.c#1 add .. //depot/projects/soc2007/revised_fbsd_pkgtools/v2/lib/ipc/server.c#1 add Differences ... ==== //depot/projects/soc2007/revised_fbsd_pkgtools/v2/lib/ipc/api.h#2 (text+ko) ==== @@ -2,6 +2,13 @@ #define __API_H +typedef struct message_type_t { + NULL_TYPE = 0, + ORIGIN_TYPE, + FILEDB_ENTRY_TYPE, + PKGDB_ENTRY_TYPE +}; + /** * The protocol consists of an 8-bit header and 1023 byte payload, devised as follows: * @@ -45,23 +52,25 @@ * */ -#define IPC_MSG_PKG_TYPE (3 << 6) -#define IPC_MSG_FILE_TYPE (2 << 6) +#define IPC_MSG_TYPE_SHIFT 6 -#define IPC_MSG_DB_TYPE (2 << 6) +#define IPC_MSG_PKGDB_TYPE (3 << IPC_MSG_TYPE_SHIFT) +#define IPC_MSG_FILEDB_TYPE (2 << IPC_MSG_TYPE_SHIFT) -#define IPC_MSG_ORIGIN_TYPE (1 << 6) +#define IPC_MSG_DB_TYPE (2 << IPC_MSG_TYPE_SHIFT) -#define IPC_MSG_ENTRY_TYPE (0) +#define IPC_MSG_ORIGIN_TYPE (1 << IPC_MSG_TYPE_SHIFT) #define IPC_MSG_UPDATE (1 << 5) #define IPC_MSG_REMOVE_ENTRY (1 << 4) -#define IPC_MSG_DEPORIGIN_REL (1 << 3) +#define IPC_MSG_IS_DEPORIGIN (1 << 3) #define IPC_MSG_VALID_FILE (1 << 2) #define IPC_MSG_VALID_CHECKSUM (1 << 1) +ipc_info_t is_valid_ipc_message(char); + #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707292328.l6TNSkoZ096036>
