/* Generated by GOB (v1.0.10) (do not edit directly) */ #include #ifndef __GNOME_PILOT_CONDUIT_BACKUP_H__ #define __GNOME_PILOT_CONDUIT_BACKUP_H__ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #include #include "gnome-pilot-conduit.h" #include "gnome-pilot-conduit-file.h" #include "gnome-pilot-dbinfo.h" typedef gint (*GnomePilotConduitBackupRestore) (gchar *filename, gint, gint, gpointer data); /* * Type checking and casting macros */ #define GNOME_TYPE_PILOT_CONDUIT_BACKUP (gnome_pilot_conduit_backup_get_type()) #define GNOME_PILOT_CONDUIT_BACKUP(obj) GTK_CHECK_CAST((obj), gnome_pilot_conduit_backup_get_type(), GnomePilotConduitBackup) #define GNOME_PILOT_CONDUIT_BACKUP_CONST(obj) GTK_CHECK_CAST((obj), gnome_pilot_conduit_backup_get_type(), GnomePilotConduitBackup const) #define GNOME_PILOT_CONDUIT_BACKUP_CLASS(klass) GTK_CHECK_CLASS_CAST((klass), gnome_pilot_conduit_backup_get_type(), GnomePilotConduitBackupClass) #define GNOME_IS_PILOT_CONDUIT_BACKUP(obj) GTK_CHECK_TYPE((obj), gnome_pilot_conduit_backup_get_type ()) #ifdef GTK_CHECK_GET_CLASS #define GNOME_PILOT_CONDUIT_BACKUP_GET_CLASS(obj) GTK_CHECK_GET_CLASS((obj), gnome_pilot_conduit_backup_get_type(), GnomePilotConduitBackupClass) #else /* !GTK_CHECK_GET_CLASS */ #define GNOME_PILOT_CONDUIT_BACKUP_GET_CLASS(obj) ((GnomePilotConduitBackupClass *)GTK_OBJECT(obj)->klass) #endif /* GTK_CHECK_GET_CLASS */ /* * Main object structure */ #ifndef __TYPEDEF_GNOME_PILOT_CONDUIT_BACKUP__ #define __TYPEDEF_GNOME_PILOT_CONDUIT_BACKUP__ typedef struct _GnomePilotConduitBackup GnomePilotConduitBackup; #endif struct _GnomePilotConduitBackup { GnomePilotConduit __parent__; /*< private >*/ GPilotPilot * pilot; /* protected */ }; /* * Class definition */ typedef struct _GnomePilotConduitBackupClass GnomePilotConduitBackupClass; struct _GnomePilotConduitBackupClass { GnomePilotConduitClass __parent__; /*signal*/int (* backup) (GnomePilotConduitBackup * self, GnomePilotDBInfo * dbinfo); /*signal*/int (* restore) (GnomePilotConduitBackup * self, int pisock, char * directory, GnomePilotConduitBackupRestore func, gpointer func_data); }; /* * Public methods */ GtkType gnome_pilot_conduit_backup_get_type (void) G_GNUC_CONST; GtkObject * gnome_pilot_conduit_backup_new (GPilotPilot * pilot); int gnome_pilot_conduit_backup_backup (GnomePilotConduitBackup * self, GnomePilotDBInfo * dbinfo); int gnome_pilot_conduit_backup_restore (GnomePilotConduitBackup * self, int pisock, char * directory, GnomePilotConduitBackupRestore func, gpointer func_data); /* * Signal connection wrapper macros */ #if defined(__GNUC__) && !defined(__STRICT_ANSI__) #define GNOME_PILOT_CONDUIT_BACKUP_SIGNAL_BACKUP(func) "backup",GTK_SIGNAL_FUNC(({int (* ___backup) (GnomePilotConduitBackup * self, GnomePilotDBInfo * dbinfo, gpointer data ) = func; ___backup; })) #define GNOME_PILOT_CONDUIT_BACKUP_SIGNAL_RESTORE(func) "restore",GTK_SIGNAL_FUNC(({int (* ___restore) (GnomePilotConduitBackup * self, int pisock, char * directory, GnomePilotConduitBackupRestore func, gpointer func_data, gpointer data ) = func; ___restore; })) #else /* __GNUC__ && !__STRICT_ANSI__ */ #define GNOME_PILOT_CONDUIT_BACKUP_SIGNAL_BACKUP(func) "backup",GTK_SIGNAL_FUNC(func) #define GNOME_PILOT_CONDUIT_BACKUP_SIGNAL_RESTORE(func) "restore",GTK_SIGNAL_FUNC(func) #endif /* __GNUC__ && !__STRICT_ANSI__ */ /* * Argument wrapping macros */ #if defined(__GNUC__) && !defined(__STRICT_ANSI__) #define GNOME_PILOT_CONDUIT_BACKUP_ARG_PILOT(arg) "pilot",({GPilotPilot * z = (arg); z;}) #define GNOME_PILOT_CONDUIT_BACKUP_GET_ARG_PILOT(arg) "pilot",({GPilotPilot * *z = (arg); z;}) #else /* __GNUC__ && !__STRICT_ANSI__ */ #define GNOME_PILOT_CONDUIT_BACKUP_ARG_PILOT(arg) "pilot",(GPilotPilot * )(arg) #define GNOME_PILOT_CONDUIT_BACKUP_GET_ARG_PILOT(arg) "pilot",(GPilotPilot * *)(arg) #endif /* __GNUC__ && !__STRICT_ANSI__ */ #ifdef __cplusplus } #endif /* __cplusplus */ #endif .