[CRIU] [PATCH 2/3] lib: add lib.h

Andrew Vagin avagin at parallels.com
Thu Nov 21 23:41:03 PST 2013


On Fri, Nov 22, 2013 at 05:20:36AM +0400, Ruslan Kuprieiev wrote:
> This header is to be used in user programs.
> 
> Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
> ---
>  lib/lib.h | 7 +++++++
>  1 file changed, 7 insertions(+)
>  create mode 100644 lib/lib.h
> 
> diff --git a/lib/lib.h b/lib/lib.h
> new file mode 100644
> index 0000000..4b96dcc
> --- /dev/null
> +++ b/lib/lib.h

The name of library should be unique, should not it?

criu.h, libcriu.h, criu-rpc.h, ...

> @@ -0,0 +1,7 @@
> +#ifndef __CRIU_LIB_H__
> +#define __CRIU_LIB_H__
> +
> +void criu_set_service_address(char *path);
> +int criu_check(void);
> +
> +#endif /* __CRIU_LIB_H__ */
> -- 
> 1.8.1.2
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list