gitkerrors.h File Reference

libgitk error codes More...

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Typedefs

typedef enum GitkErrorCode GitkErrorCode
 gitk error codes


Enumerations

enum  GitkErrorCode {
  GITK_NO_ERROR = 0, GITK_ERROR_INVALID_DOCUMENT, GITK_ERROR_EMPTY_DOCUMENT, GITK_ERROR_WRONG_DOCTYPE_NAMESPACE,
  GITK_ERROR_WRONG_DOCTYPE_ROOTNODE
}
 gitk error codes More...


Functions

GitkErrorCode gitk_get_error_code (void)
 get the last error code

gchar * gitk_get_error_str (void)
 get the last error message

void gitk_libxmlxslt_error_func (void *const ctx, const char *const msg,...)
 generic error handler to intercept libxml messages

void gitk_log_handler (const gchar *const log_domain, const GLogLevelFlags log_level, const gchar *const message, gpointer const user_data)
 log handler for gitk. Use g_log_set_handler(G_LOG_DOMAIN,G_LOG_LEVEL_DEBUG|G_LOG_LEVEL_MESSAGE|G_LOG_LEVEL_WARNING|G_LOG_LEVEL_ERROR, gitk_log_handler, NULL);

void gitk_print_handler (const gchar *const message)
 print handler for gitk, use g_set_printerr_handler(gitk_print_handler);

void gitk_set_error (const GitkErrorCode code, const gchar *const str)
 set gitk-error code and string


Detailed Description

libgitk error codes

Id
gitkerrors.h,v 1.15 2004/08/24 17:23:10 ensonic Exp

Author:
Stefan Kost <ensonic@users.sf.net>
Date:
Fri Jun 29 15:19:01 2001

Definition in file gitkerrors.h.


Typedef Documentation

typedef enum GitkErrorCode GitkErrorCode
 

gitk error codes

Referenced by gitk_get_error_code(), and gitk_set_error().


Enumeration Type Documentation

enum GitkErrorCode
 

gitk error codes

Enumeration values:
GITK_NO_ERROR  no error has occured
GITK_ERROR_INVALID_DOCUMENT  the supplied document is not a XML?GIML document
GITK_ERROR_EMPTY_DOCUMENT  an empty document has been supplied
GITK_ERROR_WRONG_DOCTYPE_NAMESPACE  a document with a wrong document type namespace has been supplied, the expected value is "http://gitk.sourceforge.net/"
GITK_ERROR_WRONG_DOCTYPE_ROOTNODE  a document with a wrong document type root node has been supplied, the expected value is "giml"

Definition at line 24 of file gitkerrors.h.


Function Documentation

void gitk_libxmlxslt_error_func void *const  ctx,
const char *const  msg,
... 
 

generic error handler to intercept libxml messages

Definition at line 105 of file gitkerrors.c.

References gitk_log.

Referenced by gitk_init_xml(), and gitk_init_xsl().

void gitk_set_error const GitkErrorCode  code,
const gchar *const  str
 

set gitk-error code and string

Definition at line 42 of file gitkerrors.c.

References gitk_error_code, gitk_error_str, gitk_log2, and GitkErrorCode.

Referenced by gitk_dialog_new_from_parser_context(), and gitk_dialog_validate().


Generated on Thu Oct 28 10:59:30 2004 for gitk by doxygen 1.3.6