X-Git-Url: https://git.jankratochvil.net/?a=blobdiff_plain;f=src%2Fstartup-chkconfig.h;h=6abcecdb968e3f7ddc3a71dbbff54b9d8acce571;hb=91537644d1e946d3ed9b53c6eb69d1dbe2579f4e;hp=829d21de6fc0961eb1aec275018c5b9e67855135;hpb=35bf1dea80e8e3007ad127c1d5c0fc4fc3f80476;p=udpgate.git diff --git a/src/startup-chkconfig.h b/src/startup-chkconfig.h index 829d21d..6abcecd 100644 --- a/src/startup-chkconfig.h +++ b/src/startup-chkconfig.h @@ -1,5 +1,5 @@ /* $Id$ - * Include file for UDP Gateway utility startup scripts support using chkconfig(8) + * Include file for UDP Gateway utility startup_chkconfig scripts inheritance support * Copyright (C) 2004 Jan Kratochvil * * This program is free software; you can redistribute it and/or modify @@ -22,14 +22,34 @@ #include +#include +#include "startup.h" G_BEGIN_DECLS -gboolean startup_chkconfig_init(void); -gboolean startup_chkconfig_query(gboolean *is_on); -gboolean startup_chkconfig_on(void); -gboolean startup_chkconfig_off(void); +#define UDPGATE_TYPE_STARTUP_CHKCONFIG (udpgate_startup_chkconfig_get_type()) +#define UDPGATE_STARTUP_CHKCONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),UDPGATE_TYPE_STARTUP_CHKCONFIG,UdpgateStartupChkconfig)) +#define UDPGATE_STARTUP_CHKCONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),UDPGATE_TYPE_STARTUP_CHKCONFIG,UdpgateStartupChkconfigClass)) +#define UDPGATE_IS_STARTUP_CHKCONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),UDPGATE_TYPE_STARTUP_CHKCONFIG)) +#define UDPGATE_IS_STARTUP_CHKCONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),UDPGATE_TYPE_STARTUP_CHKCONFIG)) +#define UDPGATE_STARTUP_CHKCONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),UDPGATE_TYPE_STARTUP_CHKCONFIG,UdpgateStartupChkconfigClass)) + +typedef struct _UdpgateStartupChkconfig UdpgateStartupChkconfig; +typedef struct _UdpgateStartupChkconfigClass UdpgateStartupChkconfigClass; + +struct _UdpgateStartupChkconfig +{ + UdpgateStartup parent_instance; +}; + +struct _UdpgateStartupChkconfigClass +{ + UdpgateStartupClass parent_class; +}; + +GType udpgate_startup_chkconfig_get_type(void) G_GNUC_CONST; +UdpgateStartupChkconfig *udpgate_startup_chkconfig_new(void); G_END_DECLS