diff options
-rw-r--r-- | e-util/ChangeLog | 4 | ||||
-rw-r--r-- | e-util/e-corba-utils.c | 6 | ||||
-rw-r--r-- | e-util/e-corba-utils.h | 3 |
3 files changed, 12 insertions, 1 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog index e6c3ddb2b8..842e78b281 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,7 @@ +2002-05-07 Ettore Perazzoli <ettore@ximian.com> + + * e-corba-utils.c (e_safe_corba_string_dup): New. + 2002-05-06 Not Zed <NotZed@Ximian.com> * e-msgport.c (e_thread_destroy): Destroy our mutex too. diff --git a/e-util/e-corba-utils.c b/e-util/e-corba-utils.c index 01aec1f6df..b92b247656 100644 --- a/e-util/e-corba-utils.c +++ b/e-util/e-corba-utils.c @@ -34,3 +34,9 @@ e_safe_corba_string (const char *s) return s; } + +CORBA_char * +e_safe_corba_string_dup (const char *s) +{ + return CORBA_string_dup (e_safe_corba_string (s)); +} diff --git a/e-util/e-corba-utils.h b/e-util/e-corba-utils.h index 582e3da6c1..32cf1df0ee 100644 --- a/e-util/e-corba-utils.h +++ b/e-util/e-corba-utils.h @@ -24,6 +24,7 @@ #include <orb/orbit.h> -const CORBA_char *e_safe_corba_string (const char *s); +const CORBA_char *e_safe_corba_string (const char *s); +CORBA_char *e_safe_corba_string_dup (const char *s); #endif |