OSC-address-space.c File Reference

#include "OSC-common.h"
#include "OSC-timetag.h"
#include "OSC-address-space.h"
#include <string.h>
#include "OSC-dispatch.h"
#include "OSC-callbacklist.h"
#include "OSC-pattern-match.h"

Classes

struct  OSCContainerStruct
struct  OSCMethodStruct
struct  callbackListEnds_struct

Defines

#define MAX_ALIASES_PER_CONTAINER   3
#define MAX_CHILDREN_PER_CONTAINER   20
#define MAX_METHODS_PER_CONTAINER   30
#define BASE_NUM_TO_REALLOCATE   10
#define LONG_ADDR_SIZE   1000
#define LONG_ADDR_LEN   100

Typedefs

typedef struct
callbackListEnds_struct 
callbackListEnds

Functions

static void MakeFreeContainersList (int n)
static void MakeFreeMethodsList (int n)
OSCcontainer OSCInitAddressSpace (struct OSCAddressSpaceMemoryTuner *t)
static OSCcontainer AllocContainer (void)
static OSCMethod AllocMethod (void)
void AddSubContainer (OSCcontainer parent, OSCcontainer child, Name name)
Boolean OSCAddContainerAlias (OSCcontainer container, Name otherName)
void RemoveSubContainer (OSCcontainer parent, OSCcontainer child)
Boolean OSCRemoveContainerAlias (OSCcontainer container, Name otherName)
OSCcontainer OSCNewContainer (Name name, OSCcontainer parent, struct OSCContainerQueryResponseInfoStruct *QueryResponseInfo)
static const char * ContainerName (OSCcontainer c)
static int gasHelp (char *target, int maxLength, OSCcontainer c)
Boolean OSCGetAddressString (char *target, int maxLength, OSCcontainer c)
OSCMethod OSCNewMethod (Name name, OSCcontainer me, methodCallback callback, void *context, struct OSCMethodQueryResponseInfoStruct *QueryResponseInfo)
void OSCInitContainerQueryResponseInfo (struct OSCContainerQueryResponseInfoStruct *i)
void OSCInitMethodQueryResponseInfo (struct OSCMethodQueryResponseInfoStruct *i)
static callbackListEnds DispatchSubMessage (char *pattern, OSCcontainer c)
static char * NextSlashOrNull (char *p)
callbackList OSCDispatchMessage (char *pattern)

Variables

static Boolean Initialized = FALSE
static OSCcontainer OSCTopLevelContainer
static OSCcontainer freeContainers
static OSCMethod freeMethods
static void *(* RealTimeMemoryAllocator )(int numBytes)

Define Documentation

#define MAX_ALIASES_PER_CONTAINER   3

#define MAX_CHILDREN_PER_CONTAINER   20

#define MAX_METHODS_PER_CONTAINER   30

Referenced by OSCNewMethod().

#define BASE_NUM_TO_REALLOCATE   10

Referenced by AllocContainer(), and AllocMethod().

#define LONG_ADDR_SIZE   1000

Referenced by OSCNewMethod().

#define LONG_ADDR_LEN   100

Referenced by DispatchSubMessage().


Typedef Documentation


Function Documentation

static void MakeFreeContainersList ( int  n  )  [static]

static void MakeFreeMethodsList ( int  n  )  [static]

OSCcontainer OSCInitAddressSpace ( struct OSCAddressSpaceMemoryTuner t  ) 

static OSCcontainer AllocContainer ( void   )  [static]

static OSCMethod AllocMethod ( void   )  [static]

void AddSubContainer ( OSCcontainer  parent,
OSCcontainer  child,
Name  name 
)

Boolean OSCAddContainerAlias ( OSCcontainer  container,
Name  otherName 
)

void RemoveSubContainer ( OSCcontainer  parent,
OSCcontainer  child 
)

Boolean OSCRemoveContainerAlias ( OSCcontainer  container,
Name  otherName 
)

OSCcontainer OSCNewContainer ( Name  name,
OSCcontainer  parent,
struct OSCContainerQueryResponseInfoStruct QueryResponseInfo 
)

static const char* ContainerName ( OSCcontainer  c  )  [static]

static int gasHelp ( char *  target,
int  maxLength,
OSCcontainer  c 
) [static]

Boolean OSCGetAddressString ( char *  target,
int  maxLength,
OSCcontainer  c 
)

References FALSE, gasHelp(), OSCProblem(), and TRUE.

Referenced by DispatchSubMessage(), and OSCNewMethod().

OSCMethod OSCNewMethod ( Name  name,
OSCcontainer  me,
methodCallback  callback,
void *  context,
struct OSCMethodQueryResponseInfoStruct QueryResponseInfo 
)

void OSCInitContainerQueryResponseInfo ( struct OSCContainerQueryResponseInfoStruct i  ) 

void OSCInitMethodQueryResponseInfo ( struct OSCMethodQueryResponseInfoStruct i  ) 

static callbackListEnds DispatchSubMessage ( char *  pattern,
OSCcontainer  c 
) [static]

static char * NextSlashOrNull ( char *  p  )  [static]

Referenced by DispatchSubMessage().

callbackList OSCDispatchMessage ( char *  pattern  ) 


Variable Documentation

Boolean Initialized = FALSE [static]

Referenced by OSCInitAddressSpace().

Referenced by main().

void*(* RealTimeMemoryAllocator)(int numBytes) [static]

Referenced by OSCInitAddressSpace().


Generated on Thu Sep 17 23:14:16 2009 for CSL by  doxygen 1.5.8