Obsolete
/
libipc-old
Archived
3
0
Fork 0

ménage dans les fichiers core

more_to_read
Philippe PITTOLI 2016-12-19 01:08:55 +01:00
parent ee2ff72ed3
commit 6a851b2e66
4 changed files with 18 additions and 0 deletions

View File

@ -1,5 +1,9 @@
#include "process.h" #include "process.h"
// TODO
// tout revoir ici
#if 0
struct process * srv_process_copy (const struct process *p) struct process * srv_process_copy (const struct process *p)
{ {
if (p == NULL) if (p == NULL)
@ -28,3 +32,4 @@ void srv_process_print (struct process *p)
if (p != NULL) if (p != NULL)
printf ("process %d : index %d, version %d\n", p->index, p->version); printf ("process %d : index %d, version %d\n", p->index, p->version);
} }
#endif

View File

@ -1,6 +1,11 @@
#ifndef __PROCESS_H__ #ifndef __PROCESS_H__
#define __PROCESS_H__ #define __PROCESS_H__
#if 0
// TODO
// tout revoir
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#include <stdio.h> #include <stdio.h>
@ -25,3 +30,4 @@ void srv_process_gen (struct process *p
void srv_process_print (struct process *); void srv_process_print (struct process *);
#endif #endif
#endif

View File

@ -1,6 +1,8 @@
#include "pubsub.h" #include "pubsub.h"
#include <stdlib.h> #include <stdlib.h>
#if 0
#include <string.h> // strndup #include <string.h> // strndup
void pubsubd_msg_serialize (const struct pubsub_msg *msg, char **data, size_t *len) void pubsubd_msg_serialize (const struct pubsub_msg *msg, char **data, size_t *len)
@ -186,3 +188,4 @@ void pubsub_msg_recv (struct process *p, struct pubsub_msg *m)
} }
} }
#endif

View File

@ -5,6 +5,8 @@
#include "process.h" #include "process.h"
#include "queue.h" #include "queue.h"
#if 0
#define PUBSUB_TYPE_DISCONNECT 0 #define PUBSUB_TYPE_DISCONNECT 0
#define PUBSUB_TYPE_MESSAGE 1 #define PUBSUB_TYPE_MESSAGE 1
#define PUBSUB_TYPE_ERROR 2 #define PUBSUB_TYPE_ERROR 2
@ -38,3 +40,5 @@ void pubsub_connection (struct service *srv, struct process *p, enum app_list_el
void pubsubd_quit (struct service *srv); void pubsubd_quit (struct service *srv);
#endif #endif
#endif