Re: [PATCH v3 14/16] tools/xenstore: split out environment specific live update code

2023-06-20 Thread Juergen Gross
On 19.06.23 19:55, Julien Grall wrote: Hi Juergen, On 30/05/2023 09:54, Juergen Gross wrote: -static struct live_update *lu_status; - -struct lu_dump_state { -    void *buf; -    unsigned int size; -#ifndef __MINIOS__ -    int fd; -    char *filename; -#endif -}; - -static int lu_destroy(void *

Re: [PATCH v3 14/16] tools/xenstore: split out environment specific live update code

2023-06-19 Thread Julien Grall
Hi Juergen, On 30/05/2023 09:54, Juergen Gross wrote: -static struct live_update *lu_status; - -struct lu_dump_state { - void *buf; - unsigned int size; -#ifndef __MINIOS__ - int fd; - char *filename; -#endif -}; - -static int lu_destroy(void *data) -{ -#ifdef __MINIOS__

[PATCH v3 14/16] tools/xenstore: split out environment specific live update code

2023-05-30 Thread Juergen Gross
Instead of using #ifdef in xenstored_control.c split out the code of environment specific functions (daemon or Mini-OS) to dedicated source files. Signed-off-by: Juergen Gross --- tools/xenstore/Makefile.common | 8 +- tools/xenstore/xenstored_control.c | 253 +-