This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues/pull-requests.
2016-12-14 23:17:35 +01:00
|
|
|
#include "process.h"
|
|
|
|
|
2016-12-19 01:08:55 +01:00
|
|
|
// TODO
|
|
|
|
// tout revoir ici
|
|
|
|
|
|
|
|
#if 0
|
2016-12-14 23:17:35 +01:00
|
|
|
struct process * srv_process_copy (const struct process *p)
|
|
|
|
{
|
|
|
|
if (p == NULL)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
struct process * copy = malloc (sizeof(struct process));
|
|
|
|
memcpy (copy, p, sizeof (struct process));
|
|
|
|
|
|
|
|
return copy;
|
|
|
|
}
|
|
|
|
|
|
|
|
int srv_process_eq (const struct process *p1, const struct process *p2)
|
|
|
|
{
|
|
|
|
return (p1->version == p2->version && p1->index == p2->index);
|
|
|
|
}
|
|
|
|
|
|
|
|
void srv_process_gen (struct process *p
|
|
|
|
, unsigned int index, unsigned int version)
|
|
|
|
{
|
|
|
|
p->version = version;
|
|
|
|
p->index = index;
|
|
|
|
}
|
|
|
|
|
|
|
|
void srv_process_print (struct process *p)
|
|
|
|
{
|
|
|
|
if (p != NULL)
|
|
|
|
printf ("process %d : index %d, version %d\n", p->index, p->version);
|
|
|
|
}
|
2016-12-19 01:08:55 +01:00
|
|
|
#endif
|