![]() |
![]() |
![]() |
Gnome Scan Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define GS_DEFINE_QUARK (quark_name, String) GnomeScanFormat * gnome_scan_format_new (gchar *name
,gchar *domain
,gchar *description
,gchar **mime_types
,gchar **extensions
); struct GnomeScanFormat; enum GnomeScanUnit;
#define GS_DEFINE_QUARK(quark_name, String)
Generate a function that generate a static quark from String
.
For example:
GS_DEFINE_QUARK (foo_bar, FooBar);
expands to:
GQuark gs_foo_bar_quark () { static GQuark quark = 0; if (!quark) { quark = g_quark_from_static_string ("FooBar"); } return quark; }
|
function prefix |
|
The string passed to g_quark_from_string()
|
GnomeScanFormat * gnome_scan_format_new (gchar *name
,gchar *domain
,gchar *description
,gchar **mime_types
,gchar **extensions
);
|
format name |
|
translation domain |
|
description |
|
list of mime types for this format |
|
list of suffixes for file of this format. |
Returns : |
a new GnomeScanFormat |
struct GnomeScanFormat { gchar *name; gchar *domain; gchar *description; gchar **mime_types; gchar **extensions; };