X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fvserver-start%2Finterface.h;h=3913c18bf1dffa48ca812b6441ff172bb943210d;hb=3eb1b2279739d0f16391a3724a9897c686f030d3;hp=22779505f7e61352f2f4309260d89ced3067ade1;hpb=e3be43e3ee2157a63ea175463629c2433f595854;p=util-vserver.git diff --git a/util-vserver/vserver-start/interface.h b/util-vserver/vserver-start/interface.h index 2277950..3913c18 100644 --- a/util-vserver/vserver-start/interface.h +++ b/util-vserver/vserver-start/interface.h @@ -19,10 +19,11 @@ #ifndef H_UTIL_VSERVER_VSERVER_START_INTERFACE_H #define H_UTIL_VSERVER_VSERVER_START_INTERFACE_H -#include +#include "configuration.h" -#include +#include #include +#include #include struct Interface { @@ -44,8 +45,8 @@ struct Interface { bool up; }; -void activateInterfaces(); -void deactivateInterfaces(); +void activateInterfaces(InterfaceList const *interfaces); +void deactivateInterfaces(InterfaceList const *interfaces); static void Iface_init(struct Interface *); static void Iface_free(struct Interface *); @@ -53,6 +54,8 @@ bool Iface_read(struct Interface *, PathInfo *cfgdir, struct Interface const *dflt); bool Iface_add(struct Interface const *); bool Iface_del(struct Interface const *); +bool Iface_remove(struct Interface const *); +void Iface_print(struct Interface const *, int fd); #include "interface-init.hc" #include "interface-free.hc"