engines

engines

Synopsis

#define             GSQL_ENGINE_SYMBOL_LOAD
#define             GSQL_ENGINE_SYMBOL_UNLOAD
#define             GNOME_SYSTEM_FONT
                    GSQLEngineInfo;
                    GSQLEngine;
void                gsql_engines_lookup                 ();
guint               gsql_engines_count                  ();
void                gsql_engines_foreach                (GHFunc func,
                                                         gpointer userdata);
void                gsql_engine_menu_set_status         (GSQLEngine *engine,
                                                         gboolean status);

Description

Details

GSQL_ENGINE_SYMBOL_LOAD

#define GSQL_ENGINE_SYMBOL_LOAD   			"engine_load"


GSQL_ENGINE_SYMBOL_UNLOAD

#define GSQL_ENGINE_SYMBOL_UNLOAD 			"engine_unload"


GNOME_SYSTEM_FONT

#define             GNOME_SYSTEM_FONT


GSQLEngineInfo

typedef struct {
	gint major_version;
	gint minor_version;
	gchar * id;
	gchar * name;
	gchar * version;
	gchar * desc;
	gchar * author;
	gchar * homepage;
} GSQLEngineInfo;


GSQLEngine

typedef struct {
	GSQLEngineInfo info;
	gchar   *file_logo; /* icon file */
	gchar   *stock_logo; /* stock name of logo */
	
	GModule *module;
	gchar   *file;
	
	GtkActionGroup *action;
	guint menu_id;

	gboolean	multi_statement; /* multistatement support. default value FALSE */
	gboolean	in_use;

	gboolean	(*load) (GSQLEngine * engine);
	gboolean	(*unload) (GSQLEngine * engine);

	gpointer	(*session_open) (GtkWidget *logon_widget, gchar *buffer);
	
	/* logon widget */
	GtkWidget  *(*logon_widget_new) ();
	void 		(*logon_widget_free) (GtkWidget * prefs_widget);
	
	/* prefs widget */
	GtkWidget  *(*conf_widget_new) ();
	void		(*conf_widget_free) (GtkWidget * prefs_widget);
	
	/* cursor routines */
	GSQLCursorState		(*cursor_open_with_bind)  (GSQLCursor *cursor, GList *args);
	GSQLCursorState		(*cursor_open_with_bind_by_name)  (GSQLCursor *cursor, GList *args);
	GSQLCursorState		(*cursor_open) (GSQLCursor *cursor);
	GSQLCursorState		(*cursor_stop) (GSQLCursor *cursor);
	gint				(*cursor_fetch) (GSQLCursor *cursor, gint rows);
} GSQLEngine;


gsql_engines_lookup ()

void                gsql_engines_lookup                 ();

Looking up available engines at PACKAGE_ENGINES_DIR


gsql_engines_count ()

guint               gsql_engines_count                  ();

Returns :


gsql_engines_foreach ()

void                gsql_engines_foreach                (GHFunc func,
                                                         gpointer userdata);

func :

userdata :


gsql_engine_menu_set_status ()

void                gsql_engine_menu_set_status         (GSQLEngine *engine,
                                                         gboolean status);

engine :

status :