diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-11-17 14:26:36 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-11-17 14:26:36 +0000 |
commit | bacac99192b65faed1a0047a8be5b95abf15873d (patch) | |
tree | c1ca0949f9cb222c8ef6305d8150ca4d9e85b4a7 /src/xine-utils/utils.c | |
parent | 75a1024fb27dbff9c4bfc948392910af94797683 (diff) | |
download | xine-lib-bacac99192b65faed1a0047a8be5b95abf15873d.tar.gz xine-lib-bacac99192b65faed1a0047a8be5b95abf15873d.tar.bz2 |
Add 'xine_' prefix to all of xine-utils functions (what about cpu
acceleration?). Merge xine-utils header files to a new one "xineutils.h".
Update xine-lib C/headers to reflect those changes.
dxr3 headers are no more installed ine $includdir, but $includdir/xine.
CVS patchset: 1054
CVS date: 2001/11/17 14:26:36
Diffstat (limited to 'src/xine-utils/utils.c')
-rw-r--r-- | src/xine-utils/utils.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/xine-utils/utils.c b/src/xine-utils/utils.c index d3435ea84..30670b109 100644 --- a/src/xine-utils/utils.c +++ b/src/xine-utils/utils.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: utils.c,v 1.1 2001/10/22 00:52:10 guenter Exp $ + * $Id: utils.c,v 1.2 2001/11/17 14:26:39 f1rmb Exp $ * */ #define _POSIX_PTHREAD_SEMANTICS 1 /* for 5-arg getpwuid_r on solaris */ @@ -43,7 +43,7 @@ /* * */ -void *xmalloc(size_t size) { +void *xine_xmalloc(size_t size) { void *ptr; if((ptr = malloc(size)) == NULL) { @@ -60,10 +60,10 @@ void *xmalloc(size_t size) { /* * */ -void *xmalloc_aligned (size_t alignment, size_t size) { +void *xine_xmalloc_aligned (size_t alignment, size_t size) { char *pMem; - pMem = xmalloc (size+alignment); + pMem = xine_xmalloc (size+alignment); while ((int) pMem % alignment) pMem++; @@ -74,7 +74,7 @@ void *xmalloc_aligned (size_t alignment, size_t size) { /* * */ -const char *get_homedir(void) { +const char *xine_get_homedir(void) { struct passwd *pw = NULL; char *homedir = NULL; #ifdef HAVE_GETPWUID_R @@ -83,7 +83,7 @@ const char *get_homedir(void) { char *buffer = NULL; int bufsize = 128; - buffer = (char *) xmalloc(bufsize); + buffer = (char *) xine_xmalloc(bufsize); if((ret = getpwuid_r(getuid(), &pwd, buffer, bufsize, &pw)) < 0) { #else @@ -111,7 +111,7 @@ const char *get_homedir(void) { /* * */ -char *chomp(char *str) { +char *xine_chomp(char *str) { char *pbuf; pbuf = str; |