[CRIU] [PATCH]v1 criu: Initial skeleton for criu library

Pavel Emelyanov xemul at parallels.com
Thu Jul 18 05:41:55 EDT 2013


On 07/17/2013 09:51 PM, Kупреев Руслан wrote:
> Hello all!
> 
> I make an initial skeleton for CRIU library. It will be used to add 
> different useful functionality.
> 

OK, the Makefile part looks good.

> diff --git a/lib/criu.c b/lib/criu.c
> new file mode 100644
> index 0000000..e613c91
> --- /dev/null
> +++ b/lib/criu.c
> @@ -0,0 +1,3 @@
> +#include "../include/version.h"
> +/*TMPversion is temporary used to avoid -Werror=unused-variable*/
> +const char* TMPversion = version;

All visible symbols must be preceded with criu_. In particular, this
one should have "criu_lib_version" name.


More information about the CRIU mailing list