~ubuntu-branches/ubuntu/breezy/speech-dispatcher/breezy

« back to all changes in this revision

Viewing changes to src/server/alloc.h

  • Committer: Bazaar Package Importer
  • Author(s): Milan Zamazal
  • Date: 2004-05-30 12:55:54 UTC
  • Revision ID: james.westby@ubuntu.com-20040530125554-iy8f3to3bw4cldv5
Tags: upstream-0.4.1
ImportĀ upstreamĀ versionĀ 0.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#include "speechd.h"
 
3
 
 
4
#ifndef ALLOC_H
 
5
 #define ALLOC_H
 
6
 
 
7
/* Like malloc(), but execute FATAL() if it can't allocate
 
8
   the memmory. It never returns NULL. */
 
9
void* spd_malloc(size_t bytes);
 
10
 
 
11
/* Like realloc(), but execute FATAL() if it can't allocate
 
12
   the memmory. It never returns NULL. */
 
13
void* spd_realloc(void* ptr, size_t bytes);
 
14
 
 
15
/* Like free(), but don't try to free NULL data. After freeing
 
16
   the data, fill the pointer with NULL. */
 
17
void spd_free(void *data);
 
18
 
 
19
/* Like strdup(), but copies also the empty "NULL" strings. */
 
20
char* spd_strdup(char* string);
 
21
 
 
22
TSpeechDQueue* speechd_queue_alloc();                                   
 
23
 
 
24
/* Copy a message */
 
25
TSpeechDMessage* spd_message_copy(TSpeechDMessage *old);
 
26
 
 
27
/* Free a message */
 
28
void mem_free_message(TSpeechDMessage *msg);
 
29
 
 
30
/* Free a settings element */
 
31
void mem_free_fdset(TFDSetElement *set);
 
32
 
 
33
 
 
34
#endif
 
35