X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=cspi%2Fspi-util.c;h=23333f8962a742309e707b79210b1a881c458205;hb=8d44f439f509885221b67efc841a1b429cdd8236;hp=6543055e45d53d8348faa3a01712608fc53dfe29;hpb=8e873a6ebbed811c4f41cbdddf6e6ba23d6bce0a;p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git diff --git a/cspi/spi-util.c b/cspi/spi-util.c index 6543055..23333f8 100644 --- a/cspi/spi-util.c +++ b/cspi/spi-util.c @@ -1,15 +1,23 @@ #include -#include #include +/** + * SPI_freeString: + * @s: a character string returned from another at-spi call. + * + * Free a character string returned from an at-spi call. Clients of + * at-spi should use this function instead of free () or g_free(). + * This API should not be used to free strings + * from other libraries or allocated by the client. + **/ void -spi_freeString (char *s) +SPI_freeString (char *s) { CORBA_free (s); } -boolean -spi_warn_ev (CORBA_Environment *ev, const char *error_string) +SPIBoolean +cspi_warn_ev (CORBA_Environment *ev, const char *error_string) { if (ev->_major != CORBA_NO_EXCEPTION) { @@ -33,7 +41,7 @@ spi_warn_ev (CORBA_Environment *ev, const char *error_string) } void -spi_check_ev (CORBA_Environment *ev, const char *error_string) +cspi_check_ev (CORBA_Environment *ev, const char *error_string) { if (ev->_major != CORBA_NO_EXCEPTION) { @@ -41,13 +49,10 @@ spi_check_ev (CORBA_Environment *ev, const char *error_string) err = bonobo_exception_get_text (ev); - fprintf (stderr, "AT-SPI error: %s: %s\n", - error_string, err); + g_warning ("AT-SPI error: %s: %s\n", error_string, err); g_free (err); CORBA_exception_free (ev); - - exit (-1); } }