#ifndef __PROCESS_H__ #define __PROCESS_H__ #include #include #include #include #define TMPDIR "/tmp/ipc/" // TODO to check the right length for a path #define PATH_MAX BUFSIZ #include struct process { unsigned int version; unsigned int index; int proc_fd; }; struct process * srv_process_copy (const struct process *p); int srv_process_eq (const struct process *p1, const struct process *p2); // create the service process structure void srv_process_gen (struct process *p , unsigned int index, unsigned int version); void srv_process_print (struct process *); #endif