gnome_config_get_string_with_default #define gnome_config_get_string_with_default(path,def) \ (_gnome_config_get_string_with_default((path),(def),FALSE)) gnome_config_get_translated_string_with_default #define gnome_config_get_translated_string_with_default(path,def) \ (_gnome_config_get_translated_string_with_default((path),(def),FALSE)) gnome_config_get_int_with_default #define gnome_config_get_int_with_default(path,def) \ (_gnome_config_get_int_with_default((path),(def),FALSE)) gnome_config_get_float_with_default #define gnome_config_get_float_with_default(path,def) \ (_gnome_config_get_float_with_default((path),(def),FALSE)) gnome_config_get_bool_with_default #define gnome_config_get_bool_with_default(path,def) \ (_gnome_config_get_bool_with_default((path),(def),FALSE)) gnome_config_get_vector_with_default #define gnome_config_get_vector_with_default(path, argcp, argvp, def) \ (_gnome_config_get_vector_with_default ((path),(argcp),(argvp), \ (def),FALSE)) gnome_config_private_get_string_with_default #define gnome_config_private_get_string_with_default(path,def) \ (_gnome_config_get_string_with_default((path),(def),TRUE)) gnome_config_private_get_translated_string_with_default #define gnome_config_private_get_translated_string_with_default(path,def) \ (_gnome_config_get_translated_string_with_default((path), (def),TRUE)) gnome_config_private_get_int_with_default #define gnome_config_private_get_int_with_default(path,def) \ (_gnome_config_get_int_with_default((path),(def),TRUE)) gnome_config_private_get_float_with_default #define gnome_config_private_get_float_with_default(path,def) \ (_gnome_config_get_int_with_default((path),(def),TRUE)) gnome_config_private_get_bool_with_default #define gnome_config_private_get_bool_with_default(path,def) \ (_gnome_config_get_bool_with_default((path),(def),TRUE)) gnome_config_private_get_vector_with_default #define gnome_config_private_get_vector_with_default(path, argcp, argvp, def) \ (_gnome_config_get_vector_with_default ((path),(argcp), (argvp), \ (def), TRUE)) gnome_config_get_string #define gnome_config_get_string(path) \ (_gnome_config_get_string_with_default ((path), NULL, FALSE)) gnome_config_get_translated_string #define gnome_config_get_translated_string(path) \ (_gnome_config_get_translated_string_with_default ((path), NULL, FALSE)) gnome_config_get_int #define gnome_config_get_int(path) \ (_gnome_config_get_int_with_default ((path), NULL, FALSE)) gnome_config_get_float #define gnome_config_get_float(path) \ (_gnome_config_get_float_with_default ((path), NULL, FALSE)) gnome_config_get_bool #define gnome_config_get_bool(path) \ (_gnome_config_get_bool_with_default ((path), NULL, FALSE)) gnome_config_get_vector #define gnome_config_get_vector(path, argcp, argvp) \ (_gnome_config_get_vector_with_default ((path), (argcp), (argvp), \ NULL, FALSE)) gnome_config_private_get_string #define gnome_config_private_get_string(path) \ (_gnome_config_get_string_with_default ((path), NULL, TRUE)) gnome_config_private_get_translated_string #define gnome_config_private_get_translated_string(path) \ (_gnome_config_get_translated_string_with_default ((path), NULL, TRUE)) gnome_config_private_get_int #define gnome_config_private_get_int(path) \ (_gnome_config_get_int_with_default ((path), NULL, TRUE)) gnome_config_private_get_float #define gnome_config_private_get_float(path) \ (_gnome_config_get_float_with_default ((path), NULL, TRUE)) gnome_config_private_get_bool #define gnome_config_private_get_bool(path) \ (_gnome_config_get_bool_with_default ((path), NULL, TRUE)) gnome_config_private_get_vector #define gnome_config_private_get_vector(path, argcp, argvp) \ (_gnome_config_get_vector_with_default ((path), (argcp), (argvp), \ NULL, TRUE)) gnome_config_set_string #define gnome_config_set_string(path,new_value) \ (_gnome_config_set_string((path),(new_value),FALSE)) gnome_config_set_translated_string #define gnome_config_set_translated_string(path,value) \ (_gnome_config_set_translated_string((path),(value),FALSE)) gnome_config_set_int #define gnome_config_set_int(path,new_value) \ (_gnome_config_set_int((path),(new_value),FALSE)) gnome_config_set_float #define gnome_config_set_float(path,new_value) \ (_gnome_config_set_float((path),(new_value),FALSE)) gnome_config_set_bool #define gnome_config_set_bool(path,new_value) \ (_gnome_config_set_bool((path),(new_value),FALSE)) gnome_config_set_vector #define gnome_config_set_vector(path,argc,argv) \ (_gnome_config_set_vector((path),(argc),(argv),FALSE)) gnome_config_private_set_string #define gnome_config_private_set_string(path,new_value) \ (_gnome_config_set_string((path),(new_value),TRUE)) gnome_config_private_set_translated_string #define gnome_config_private_set_translated_string(path,new_value) \ (_gnome_config_set_translated_string((path),(new_value),TRUE)) gnome_config_private_set_int #define gnome_config_private_set_int(path,new_value) \ (_gnome_config_set_int((path),(new_value),TRUE)) gnome_config_private_set_float #define gnome_config_private_set_float(path,new_value) \ (_gnome_config_set_float((path),(new_value),TRUE)) gnome_config_private_set_bool #define gnome_config_private_set_bool(path,new_value) \ (_gnome_config_set_bool((path),(new_value),TRUE)) gnome_config_private_set_vector #define gnome_config_private_set_vector(path,argc,argv) \ (_gnome_config_set_vector((path),(argc),(argv),TRUE)) gnome_config_has_section #define gnome_config_has_section(path) \ (_gnome_config_has_section((path),FALSE)) gnome_config_private_has_section #define gnome_config_private_has_section(path) \ (_gnome_config_has_section((path),TRUE)) gnome_config_init_iterator #define gnome_config_init_iterator(path) \ (_gnome_config_init_iterator((path),FALSE)) gnome_config_private_init_iterator #define gnome_config_private_init_iterator(path) \ (_gnome_config_init_iterator((path),TRUE)) gnome_config_init_iterator_sections #define gnome_config_init_iterator_sections(path) \ (_gnome_config_init_iterator_sections((path),FALSE)) gnome_config_private_init_iterator_sections #define gnome_config_private_init_iterator_sections(path) \ (_gnome_config_init_iterator_sections((path),TRUE)) gnome_config_iterator_next void * void *iterator_handle, char **key, char **value gnome_config_drop_all void void gnome_config_sync void void gnome_config_sync_file #define gnome_config_sync_file(path) \ (_gnome_config_sync_file((path),FALSE)) gnome_config_private_sync_file #define gnome_config_private_sync_file(path) \ (_gnome_config_sync_file((path),TRUE)) gnome_config_drop_file #define gnome_config_drop_file(path) \ (_gnome_config_drop_file((path),FALSE)) gnome_config_private_drop_file #define gnome_config_private_drop_file(path) \ (_gnome_config_drop_file((path),TRUE)) gnome_config_clean_file #define gnome_config_clean_file(path) \ (_gnome_config_clean_file((path),FALSE)) gnome_config_private_clean_file #define gnome_config_private_clean_file(path) \ (_gnome_config_clean_file((path),TRUE)) gnome_config_clean_section #define gnome_config_clean_section(path) \ (_gnome_config_clean_section((path),FALSE)) gnome_config_private_clean_section #define gnome_config_private_clean_section(path) \ (_gnome_config_clean_section((path),TRUE)) gnome_config_clean_key #define gnome_config_clean_key(path) \ (_gnome_config_clean_key((path),FALSE)) gnome_config_private_clean_key #define gnome_config_private_clean_key(path) \ (_gnome_config_clean_key((path),TRUE)) gnome_config_get_real_path #define gnome_config_get_real_path(path) \ (g_concat_dir_and_file (gnome_user_dir,(path))) gnome_config_private_get_real_path #define gnome_config_private_get_real_path(path) \ (g_concat_dir_and_file (gnome_user_private_dir,(path))) gnome_config_push_prefix void const char *path gnome_config_pop_prefix void void gnome_config_make_vector void const char *string, int *argcp, char ***argvp gnome_config_assemble_vector char * int argc, const char *const argv [] gnome_config_set_set_handler void void (*func)(void *),void *data gnome_config_set_sync_handler void void (*func)(void *),void *data BEGIN_GNOME_DECLS #define BEGIN_GNOME_DECLS extern "C" { END_GNOME_DECLS #define END_GNOME_DECLS } BEGIN_GNOME_DECLS #define BEGIN_GNOME_DECLS END_GNOME_DECLS #define END_GNOME_DECLS GnomeDesktopEntry typedef struct { char *name; /* These contain the translated name/comment */ char *comment; int exec_length; /* Length of `exec' vector. Does not include the NULL terminator. */ char **exec; /* Command to execute. Must be NULL terminated. */ char *tryexec; /* Test program to execute */ char *icon; /* Icon name */ char *docpath; /* Path to the documentation */ int terminal; /* flag: requires a terminal to run */ char *type; /* type of this dentry */ char *location; /* path of this dentry */ char *geometry; /* geometry for this icon */ unsigned int multiple_args:1; unsigned int is_kde:1; /* If this is a .kdelink file */ } GnomeDesktopEntry; gnome_desktop_entry_load GnomeDesktopEntry * const char *file gnome_desktop_entry_load_flags GnomeDesktopEntry * const char *file, int clean_from_memory_after_load gnome_desktop_entry_load_flags_conditional GnomeDesktopEntry * const char *file, int clean_from_memory_after_load, int unconditional gnome_desktop_entry_load_unconditional GnomeDesktopEntry * const char *file gnome_desktop_entry_save void GnomeDesktopEntry *dentry gnome_desktop_entry_free void GnomeDesktopEntry *item gnome_desktop_entry_destroy void GnomeDesktopEntry *item gnome_desktop_entry_launch void GnomeDesktopEntry *item gnome_desktop_entry_launch_with_args void GnomeDesktopEntry *item, int the_argc, char *the_argv[] gnome_desktop_entry_copy GnomeDesktopEntry * GnomeDesktopEntry * source gnome_execute_async int const char *dir, int argc, char * const argv[] gnome_execute_async_fds int const char *dir, int argc, char * const argv[],gboolean close_fds gnome_execute_async_with_env int const char *dir,int argc, char * const argv[],int envc, char * const envv[] gnome_execute_async_with_env_fds int const char *dir, int argc,char * const argv[], int envc,char * const envv[], gboolean close_fds gnome_execute_shell int const char *dir, const char *commandline gnome_execute_shell_fds int const char *dir, const char *commandline,gboolean close_fds gnome_file_convert_fd gint gint fd, gchar *fromtype, gchar *totype gnome_file_convert gint const char *filename, const char *fromtype, const char *totype GnomeHelpMenuEntry typedef struct { gchar *name; gchar *path; } GnomeHelpMenuEntry; gnome_help_file_find_file gchar * gchar *app, gchar *path gnome_help_file_path gchar * gchar *app, gchar *path gnome_help_display void void *ignore, GnomeHelpMenuEntry *ref gnome_help_pbox_display void void *ignore, gint page_num,GnomeHelpMenuEntry *ref gnome_help_pbox_goto void void *ignore, int ignore2, GnomeHelpMenuEntry *ref gnome_help_goto void void *ignore, gchar *file GnomeHistoryEntry struct GnomeHistoryEntry { char *filename; /* Name of the visited file. */ char *filetype; /* MIME type of the visited file. */ char *creator; /* What program created the file. */ char *desc; /* Description of what choosing this item would do. This is some explanatory text that might be presented to the user. */ }; gnome_history_recently_used void char *filename, char *filetype,char *creator, char *desc gnome_history_get_recently_used GList * void gnome_history_free_recently_used_list void GList *alist _ # define _(String) gettext (String) N_ # define N_(String) gettext_noop (String) N_ # define N_(String) (String) textdomain # define textdomain(String) (String) gettext # define gettext(String) (String) dgettext # define dgettext(Domain,Message) (Message) dcgettext # define dcgettext(Domain,Message,Type) (Message) bindtextdomain # define bindtextdomain(Domain,Directory) (Domain) _ # define _(String) (String) N_ # define N_(String) (String) gnome_i18n_get_language const char * void gnome_i18n_get_language_list GList * const gchar *category_name gnome_i18n_set_preferred_language void const char *val gnome_i18n_get_preferred_language const char * void gnome_i18n_init void void gnome_mime_type const char * const gchar* filename gnome_mime_type_or_default const char * const gchar *filename,const gchar *defaultv gnome_mime_type_of_file const char * const char *existing_filename gnome_mime_type_or_default_of_file const char * const char *existing_filename,const gchar *defaultv gnome_mime_type_from_magic const char * const gchar *filename gnome_uri_list_extract_filenames GList * const gchar* uri_list gnome_uri_list_extract_uris GList * const gchar* uri_list gnome_uri_list_free_strings void GList *list gnome_score_init gint const gchar * gamename gnome_score_log gint gfloat score,gchar *level,gboolean higher_to_lower_score_order GnomeTriggerType typedef enum { GTRIG_NONE, GTRIG_FUNCTION, GTRIG_COMMAND, GTRIG_MEDIAPLAY } GnomeTriggerType; GnomeTriggerActionFunction void char *msg, char *level, char *supinfo[] GnomeTrigger struct GnomeTrigger { GnomeTriggerType type; union { /* * These will be passed the same info as * gnome_triggers_do got */ GnomeTriggerActionFunction function; gchar *command; struct { gchar *file; int cache_id; } media; } u; gchar *level; }; GnomeTrigger gnome_triggers_init void void gnome_triggers_readfile gint const char *infilename gnome_triggers_add_trigger void GnomeTrigger *nt, ... gnome_triggers_vadd_trigger void GnomeTrigger *nt,char *supinfo[] gnome_triggers_do void const char *msg,const char *level, ... gnome_triggers_vdo void const char *msg, const char *level,const char *supinfo[] PATH_SEP #define PATH_SEP '/' PATH_SEP_STR #define PATH_SEP_STR "/" gnome_libdir_file char * const char *filename gnome_datadir_file char * const char *filename gnome_sound_file char * const char *filename gnome_pixmap_file char * const char *filename gnome_config_file char * const char *filename gnome_unconditional_libdir_file char * const char *filename gnome_unconditional_datadir_file char * const char *filename gnome_unconditional_sound_file char * const char *filename gnome_unconditional_pixmap_file char * const char *filename gnome_unconditional_config_file char * const char *filename g_file_test int const char *filename, int test g_file_exists int const char *filename gnome_is_program_in_path gchar * const gchar *program g_copy_strings #define g_copy_strings g_strconcat g_unix_error_string const char * int error_num g_concat_dir_and_file char * const char *dir, const char *file g_filename_index #define g_filename_index(path) (g_basename(path)-(path)) g_filename_pointer #define g_filename_pointer g_basename g_extension_pointer const char * const char * path g_copy_vector char ** char ** vec g_flatten_vector #define g_flatten_vector g_strjoinv gnome_util_user_home #define gnome_util_user_home() g_get_home_dir() gnome_util_prepend_user_home #define gnome_util_prepend_user_home(x) (g_concat_dir_and_file(gnome_util_user_home(), (x))) gnome_util_home_file #define gnome_util_home_file(afile) (g_strconcat(gnome_util_user_home(), "/.gnome/", (afile), NULL)) gnome_util_user_shell char * void g_is_image_filename gboolean const char * path gnome_user_home_dir extern char *gnome_user_home_dir; gnome_user_dir extern char *gnome_user_dir; gnome_user_private_dir extern char *gnome_user_private_dir; gnome_user_accels_dir extern char *gnome_user_accels_dir; gnome_do_not_create_directories extern char gnome_do_not_create_directories; gnomelib_init void const char *app_id, const char *app_version gnome_mime_get_value const char * const char *mime_type, char *key gnome_mime_get_keys GList * const char *mime_type gnome_mime_program const char * const char* mime_type gnome_mime_description const char * const char* mime_type gnome_mime_nametemplate const char * const char* mime_type gnome_mime_test const char * const char* mime_type gnome_mime_composetyped const char * const char* mime_type gnome_mime_copiousoutput gboolean const char* mime_type, char *key gnome_mime_needsterminal gboolean const char* mime_type, char *key gnome_remote_get_command void const char *host, gint *argcp, char ***argvp gnome_remote_set_command void const char *host, gint argc, const char * const argv[] GnomeMetadataError_t typedef enum { GNOME_METADATA_OK = 0, /* No error. */ GNOME_METADATA_IO_ERROR, /* IO or other low-level communications/storage error. */ GNOME_METADATA_NOT_FOUND /* Information not found. */ } GnomeMetadataError_t; gnome_metadata_set int const char *file, const char *name,int size, const char *data gnome_metadata_remove int const char *file, const char *name gnome_metadata_list char ** const char *file gnome_metadata_get int const char *file, const char *name,int *size, char **buffer gnome_metadata_get_fast int const char *file, const char *name,int *size, char **buffer gnome_metadata_rename int const char *from, const char *to gnome_metadata_copy int const char *from, const char *to gnome_metadata_delete int const char *file gnome_metadata_regex_add void const char *regex, const char *key,int size, const char *data gnome_metadata_regex_remove void const char *regex, const char *key gnome_metadata_type_add void const char *type, const char *key,int size, const char *data gnome_metadata_type_remove void const char *type, const char *key gnome_metadata_lock void void gnome_metadata_unlock void void GnomeRegexCache typedef struct { int size; /* Total number of cache slots. */ int next; /* Next available slot. */ char **regexs; /* Regular expression strings. */ regex_t *patterns; /* Compiled expressions. */ /* FIXME: probably should cache compilation flags along with regex and use those to determine caching. For now we assume that the flags never change. Another option would be to put the flag info into this structure and just not let the user ever change it. */ } GnomeRegexCache; gnome_regex_cache_new GnomeRegexCache * void gnome_regex_cache_destroy void GnomeRegexCache *rxc gnome_regex_cache_set_size void GnomeRegexCache *rxc, int new_size gnome_regex_cache_compile regex_t * GnomeRegexCache *rxc, const char *pattern,int flags gnome_sound_connection extern int gnome_sound_connection; gnome_sound_init void const char *hostname gnome_sound_shutdown void void gnome_sound_sample_load int const char *sample_name, const char *filename gnome_sound_play void const char * filename GnomePaper GnomeUnit Paper typedef GnomePaper Paper; Unit typedef GnomeUnit Unit; gnome_paper_name_list GList * void gnome_paper_with_name const GnomePaper * const gchar *papername gnome_paper_with_size const GnomePaper * double pswidth, double psheight gnome_paper_name const gchar * const GnomePaper *paper gnome_paper_pswidth gdouble const GnomePaper *paper gnome_paper_psheight gdouble const GnomePaper *paper gnome_paper_lmargin gdouble const GnomePaper *paper gnome_paper_tmargin gdouble const GnomePaper *paper gnome_paper_rmargin gdouble const GnomePaper *paper gnome_paper_bmargin gdouble const GnomePaper *paper gnome_paper_name_default const gchar * void gnome_unit_name_list GList * void gnome_unit_with_name const GnomeUnit * const gchar *unitname gnome_paper_convert gdouble double psvalue, const GnomeUnit *unit gnome_paper_convert_to_points double double othervalue, const GnomeUnit *unit gnome_url_show void const char *url gnomelib_register_popt_table void const struct poptOption *options,const char *description gnomelib_parse_args poptContext int argc, char *argv[],int popt_flags program_invocation_short_name extern char *program_invocation_short_name; program_invocation_name extern char *program_invocation_name;