00001 00013 #ifndef GITK_GLOBAL_H 00014 #define GITK_GLOBAL_H 00015 00016 #ifdef __cplusplus 00017 extern "C" { 00018 #endif 00019 00020 #ifndef GITK_GLOBAL_C 00021 #ifdef GITK_LIB_C 00022 extern gboolean gitk_initialized; 00023 extern gchar *client_name; 00024 extern gchar *client_package_name; 00025 extern gchar *client_locale_dir; 00026 extern gboolean check_mode; 00027 extern gchar *log_file_name; 00028 #endif 00029 //-- renderer management ------------------------------------------------------- 00030 #ifdef GITK_LIB_C 00031 extern gchar *gitk_renderer_name; 00032 extern GitkRenderer *gitk_renderer; 00033 extern gchar *gitk_style_name; 00034 extern gboolean exchange_event_loop; 00035 #endif 00036 //-- internal httpd server ----------------------------------------------------- 00037 #if defined(USE_LIBHTTPD) && defined(GITK_LIB_C) 00038 extern guint gitk_server_port; 00039 extern GThread* server_thread; 00040 //extern pthread_t gitk_server_thread_id; 00041 #endif 00042 //-- context management -------------------------------------------------------- 00043 extern GList *gitk_dialog_list; 00044 #ifdef GITK_LIB_C 00045 extern GitkDialogPtr cur_context; 00046 extern GList *gitk_global_callback_list; 00047 #endif 00048 //-- compiled xpath expressions ------------------------------------------------ 00049 extern xmlXPathCompExprPtr xpath_get_dialog_name; 00050 extern xmlXPathCompExprPtr xpath_get_dialog_modality; 00051 extern xmlXPathCompExprPtr xpath_get_label; 00052 //-- libxml2 globals ----------------------------------------------------------- 00056 extern int xmlLoadExtDtdDefaultValue; 00057 //-- xsl instances ------------------------------------------------------------- 00058 #ifdef GITK_LIB_C 00059 extern xsltStylesheetPtr xsl_expand; 00060 extern xsltStylesheetPtr xsl_i18n; 00061 extern xsltStylesheetPtr xsl_domain; 00062 extern xsltStylesheetPtr xsl_style; 00063 #endif 00064 00065 #endif 00066 00067 #ifdef __cplusplus 00068 } // extern "C" 00069 #endif 00070 00071 #endif /* GITK_GLOBAL_H */