From 6a851b2e664117c4c6243de5989d9d1d71570842 Mon Sep 17 00:00:00 2001
From: Philippe PITTOLI
Date: Mon, 19 Dec 2016 01:08:55 +0100
Subject: [PATCH] =?UTF-8?q?m=C3=A9nage=20dans=20les=20fichiers=20core?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
core/process.c | 5 +++++
core/process.h | 6 ++++++
core/pubsub.c | 3 +++
core/pubsub.h | 4 ++++
4 files changed, 18 insertions(+)
diff --git a/core/process.c b/core/process.c
index fbe692b..5a1696c 100644
--- a/core/process.c
+++ b/core/process.c
@@ -1,5 +1,9 @@
#include "process.h"
+// TODO
+// tout revoir ici
+
+#if 0
struct process * srv_process_copy (const struct process *p)
{
if (p == NULL)
@@ -28,3 +32,4 @@ void srv_process_print (struct process *p)
if (p != NULL)
printf ("process %d : index %d, version %d\n", p->index, p->version);
}
+#endif
diff --git a/core/process.h b/core/process.h
index e42a00d..c2f3601 100644
--- a/core/process.h
+++ b/core/process.h
@@ -1,6 +1,11 @@
#ifndef __PROCESS_H__
#define __PROCESS_H__
+#if 0
+
+// TODO
+// tout revoir
+
#include
#include
#include
@@ -25,3 +30,4 @@ void srv_process_gen (struct process *p
void srv_process_print (struct process *);
#endif
+#endif
diff --git a/core/pubsub.c b/core/pubsub.c
index 285d348..14c052f 100644
--- a/core/pubsub.c
+++ b/core/pubsub.c
@@ -1,6 +1,8 @@
#include "pubsub.h"
#include
+#if 0
+
#include // strndup
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
diff --git a/core/pubsub.h b/core/pubsub.h
index 34fc210..54c6d49 100644
--- a/core/pubsub.h
+++ b/core/pubsub.h
@@ -5,6 +5,8 @@
#include "process.h"
#include "queue.h"
+#if 0
+
#define PUBSUB_TYPE_DISCONNECT 0
#define PUBSUB_TYPE_MESSAGE 1
#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);
#endif
+
+#endif