From: Enrico Scholz Date: Tue, 14 Oct 2003 18:46:54 +0000 (+0000) Subject: moved declarations of general functions from vserver-internal.h into X-Git-Tag: VERSION_0_10~1258 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48c61aa442df9e42a6451a3f2901879f42ea752f;p=util-vserver.git moved declarations of general functions from vserver-internal.h into internal.h git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@152 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/lib/internal.h b/util-vserver/lib/internal.h new file mode 100644 index 0000000..82eecae --- /dev/null +++ b/util-vserver/lib/internal.h @@ -0,0 +1,37 @@ +// $Id$ --*- c++ -*-- + +// Copyright (C) 2003 Enrico Scholz +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; version 2 of the License. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +#ifndef H_UTIL_VSERVER_LIB_INTERNAL_H +#define H_UTIL_VSERVER_LIB_INTERNAL_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +size_t utilvserver_uint2str(char *buf, size_t len, + unsigned int val, unsigned char base); +int utilvserver_checkCompatVersion(); + +#ifdef __cplusplus +} +#endif + + +#endif // H_UTIL_VSERVER_LIB_INTERNAL_H diff --git a/util-vserver/lib/vserver-internal.h b/util-vserver/lib/vserver-internal.h index 394039b..cbf67c2 100644 --- a/util-vserver/lib/vserver-internal.h +++ b/util-vserver/lib/vserver-internal.h @@ -19,12 +19,10 @@ #ifndef H_VSERVER_SYSCALL_INTERNAL_H #define H_VSERVER_SYSCALL_INTERNAL_H -#include -#include -#include -#include #include +#include #include +#include #ifndef __NR_sys_virtual_context # define __NR_sys_virtual_context 273 @@ -64,26 +62,10 @@ # define CALL_VC_LEGACY(F,...) CALL_VC_NOOP #endif - - - -#ifdef __cplusplus -extern "C" { -#endif - #ifndef HAVE_SYS_VIRTUAL_CONTEXT static UNUSED _syscall3(int, sys_virtual_context, uint32_t, cmd, uint32_t, id, void *, data) #endif -size_t utilvserver_uint2str(char *buf, size_t len, - unsigned int val, unsigned char base); -int utilvserver_checkCompatVersion(); - -#ifdef __cplusplus -} -#endif - - #endif // H_VSERVER_SYSCALL_INTERNAL_H