[Cbe-oss-dev] [PATCH 4/7] libspe2: Hide internal symbols: callback handler
Kazunori Asayama
asayama at sm.sony.co.jp
Thu Jul 19 23:22:23 EST 2007
This patch hides internal symbols in the 'callback handler' part of
libspe2.
Signed-off-by: Kazunori Asayama <asayama at sm.sony.co.jp>
---
spebase/lib_builtin.c | 4 ++--
spebase/lib_builtin.h | 4 ++--
spebase/run.c | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
Index: b/spebase/lib_builtin.c
===================================================================
--- a/spebase/lib_builtin.c 2007-07-19 20:40:30.000000000 +0900
+++ b/spebase/lib_builtin.c 2007-07-19 20:50:04.000000000 +0900
@@ -120,8 +120,8 @@ void * _base_spe_callback_handler_query(
return handlers[callnum];
}
-int handle_library_callback(struct spe_context *spe, int callnum,
- unsigned int npc)
+int _base_spe_handle_library_callback(struct spe_context *spe, int callnum,
+ unsigned int npc)
{
int (*handler)(void *, unsigned int);
int rc;
Index: b/spebase/lib_builtin.h
===================================================================
--- a/spebase/lib_builtin.h 2007-07-19 20:40:25.000000000 +0900
+++ b/spebase/lib_builtin.h 2007-07-19 20:50:19.000000000 +0900
@@ -25,7 +25,7 @@
#define MAX_CALLNUM 255
#define RESERVED 4
-extern int handle_library_callback(struct spe_context *spe, int callnum,
- unsigned int npc);
+extern int _base_spe_handle_library_callback(struct spe_context *spe, int callnum,
+ unsigned int npc);
#endif
Index: b/spebase/run.c
===================================================================
--- a/spebase/run.c 2007-07-19 20:44:21.000000000 +0900
+++ b/spebase/run.c 2007-07-19 20:49:35.000000000 +0900
@@ -265,8 +265,8 @@ do_run:
/* execute library callback */
DEBUG_PRINTF("SPE library call: %d\n", callback_number);
- callback_rc = handle_library_callback(spe,
- callback_number, *entry);
+ callback_rc = _base_spe_handle_library_callback(spe,
+ callback_number, *entry);
if (callback_rc) {
/* library callback failed; set errno and
More information about the cbe-oss-dev
mailing list