dbus-glib-error-switch.h

00001 static gint
00002 dbus_error_to_gerror_code (const char *derr)
00003 {
00004   if (0) ; 
00005   else if (!strcmp (derr,  DBUS_ERROR_FAILED  )) 
00006     return  DBUS_GERROR_FAILED ;
00007   else if (!strcmp (derr,  DBUS_ERROR_NO_MEMORY  )) 
00008     return  DBUS_GERROR_NO_MEMORY ;
00009   else if (!strcmp (derr,  DBUS_ERROR_SERVICE_UNKNOWN  )) 
00010     return  DBUS_GERROR_SERVICE_UNKNOWN ;
00011   else if (!strcmp (derr,  DBUS_ERROR_NAME_HAS_NO_OWNER  )) 
00012     return  DBUS_GERROR_NAME_HAS_NO_OWNER ;
00013   else if (!strcmp (derr,  DBUS_ERROR_NO_REPLY  )) 
00014     return  DBUS_GERROR_NO_REPLY ;
00015   else if (!strcmp (derr,  DBUS_ERROR_IO_ERROR  )) 
00016     return  DBUS_GERROR_IO_ERROR ;
00017   else if (!strcmp (derr,  DBUS_ERROR_BAD_ADDRESS  )) 
00018     return  DBUS_GERROR_BAD_ADDRESS ;
00019   else if (!strcmp (derr,  DBUS_ERROR_NOT_SUPPORTED  )) 
00020     return  DBUS_GERROR_NOT_SUPPORTED ;
00021   else if (!strcmp (derr,  DBUS_ERROR_LIMITS_EXCEEDED  )) 
00022     return  DBUS_GERROR_LIMITS_EXCEEDED ;
00023   else if (!strcmp (derr,  DBUS_ERROR_ACCESS_DENIED  )) 
00024     return  DBUS_GERROR_ACCESS_DENIED ;
00025   else if (!strcmp (derr,  DBUS_ERROR_AUTH_FAILED  )) 
00026     return  DBUS_GERROR_AUTH_FAILED ;
00027   else if (!strcmp (derr,  DBUS_ERROR_NO_SERVER  )) 
00028     return  DBUS_GERROR_NO_SERVER ;
00029   else if (!strcmp (derr,  DBUS_ERROR_TIMEOUT  )) 
00030     return  DBUS_GERROR_TIMEOUT ;
00031   else if (!strcmp (derr,  DBUS_ERROR_NO_NETWORK  )) 
00032     return  DBUS_GERROR_NO_NETWORK ;
00033   else if (!strcmp (derr,  DBUS_ERROR_ADDRESS_IN_USE  )) 
00034     return  DBUS_GERROR_ADDRESS_IN_USE ;
00035   else if (!strcmp (derr,  DBUS_ERROR_DISCONNECTED  )) 
00036     return  DBUS_GERROR_DISCONNECTED ;
00037   else if (!strcmp (derr,  DBUS_ERROR_INVALID_ARGS  )) 
00038     return  DBUS_GERROR_INVALID_ARGS ;
00039   else if (!strcmp (derr,  DBUS_ERROR_FILE_NOT_FOUND  )) 
00040     return  DBUS_GERROR_FILE_NOT_FOUND ;
00041   else if (!strcmp (derr,  DBUS_ERROR_FILE_EXISTS  )) 
00042     return  DBUS_GERROR_FILE_EXISTS ;
00043   else if (!strcmp (derr,  DBUS_ERROR_UNKNOWN_METHOD  )) 
00044     return  DBUS_GERROR_UNKNOWN_METHOD ;
00045   else if (!strcmp (derr,  DBUS_ERROR_TIMED_OUT  )) 
00046     return  DBUS_GERROR_TIMED_OUT ;
00047   else if (!strcmp (derr,  DBUS_ERROR_MATCH_RULE_NOT_FOUND  )) 
00048     return  DBUS_GERROR_MATCH_RULE_NOT_FOUND ;
00049   else if (!strcmp (derr,  DBUS_ERROR_MATCH_RULE_INVALID  )) 
00050     return  DBUS_GERROR_MATCH_RULE_INVALID ;
00051   else if (!strcmp (derr,  DBUS_ERROR_SPAWN_EXEC_FAILED  )) 
00052     return  DBUS_GERROR_SPAWN_EXEC_FAILED ;
00053   else if (!strcmp (derr,  DBUS_ERROR_SPAWN_FORK_FAILED  )) 
00054     return  DBUS_GERROR_SPAWN_FORK_FAILED ;
00055   else if (!strcmp (derr,  DBUS_ERROR_SPAWN_CHILD_EXITED  )) 
00056     return  DBUS_GERROR_SPAWN_CHILD_EXITED ;
00057   else if (!strcmp (derr,  DBUS_ERROR_SPAWN_CHILD_SIGNALED  )) 
00058     return  DBUS_GERROR_SPAWN_CHILD_SIGNALED ;
00059   else if (!strcmp (derr,  DBUS_ERROR_SPAWN_FAILED  )) 
00060     return  DBUS_GERROR_SPAWN_FAILED ;
00061   else if (!strcmp (derr,  DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN  )) 
00062     return  DBUS_GERROR_UNIX_PROCESS_ID_UNKNOWN ;
00063   else if (!strcmp (derr,  DBUS_ERROR_INVALID_SIGNATURE  )) 
00064     return  DBUS_GERROR_INVALID_SIGNATURE ;
00065   else if (!strcmp (derr,  DBUS_ERROR_INVALID_FILE_CONTENT  )) 
00066     return  DBUS_GERROR_INVALID_FILE_CONTENT ;
00067   else if (!strcmp (derr,  DBUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN  )) 
00068     return  DBUS_GERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN ;
00069   else
00070     return DBUS_GERROR_REMOTE_EXCEPTION;
00071 }

Generated on Sat Dec 6 19:56:17 2008 for D-BUSGLibBindings by  doxygen 1.5.1