#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"| #define MAX_ALIASES_PER_CONTAINER 3 |
| #define MAX_CHILDREN_PER_CONTAINER 20 |
Referenced by AddSubContainer(), and OSCAddContainerAlias().
| #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 struct callbackListEnds_struct callbackListEnds |
| static void MakeFreeContainersList | ( | int | n | ) | [static] |
| static void MakeFreeMethodsList | ( | int | n | ) | [static] |
| OSCcontainer OSCInitAddressSpace | ( | struct OSCAddressSpaceMemoryTuner * | t | ) |
References OSCContainerQueryResponseInfoStruct::comment, fatal_error(), Initialized, OSCAddressSpaceMemoryTuner::initNumContainers, OSCAddressSpaceMemoryTuner::initNumMethods, OSCAddressSpaceMemoryTuner::InitTimeMemoryAllocator, MakeFreeContainersList(), MakeFreeMethodsList(), OSCContainerStruct::next, OSCContainerStruct::numChildren, OSCContainerStruct::numMethods, OSCContainerStruct::parent, OSCContainerStruct::QueryResponseInfo, OSCAddressSpaceMemoryTuner::RealTimeMemoryAllocator, RealTimeMemoryAllocator, and TRUE.
| static OSCcontainer AllocContainer | ( | void | ) | [static] |
References BASE_NUM_TO_REALLOCATE, MakeFreeContainersList(), OSCContainerStruct::next, and OSCWarning().
Referenced by OSCNewContainer().
| static OSCMethod AllocMethod | ( | void | ) | [static] |
References BASE_NUM_TO_REALLOCATE, MakeFreeMethodsList(), OSCMethodStruct::next, and OSCWarning().
Referenced by OSCNewMethod().
| void AddSubContainer | ( | OSCcontainer | parent, | |
| OSCcontainer | child, | |||
| Name | name | |||
| ) |
References OSCContainerStruct::children, OSCContainerStruct::childrenNames, fatal_error(), MAX_CHILDREN_PER_CONTAINER, and OSCContainerStruct::numChildren.
Referenced by OSCAddContainerAlias(), and OSCNewContainer().
| 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] |
References OSCContainerStruct::children, OSCContainerStruct::childrenNames, fatal_error(), OSCContainerStruct::numChildren, and OSCContainerStruct::parent.
Referenced by gasHelp().
| 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 | |||
| ) |
References AllocMethod(), OSCMethodStruct::callback, OSCMethodStruct::context, LONG_ADDR_SIZE, MAX_METHODS_PER_CONTAINER, OSCContainerStruct::methodNames, OSCContainerStruct::methods, OSCContainerStruct::numMethods, OSCGetAddressString(), OSCProblem(), and OSCMethodStruct::QueryResponseInfo.
Referenced by main().
| void OSCInitContainerQueryResponseInfo | ( | struct OSCContainerQueryResponseInfoStruct * | i | ) |
References OSCContainerQueryResponseInfoStruct::comment.
| void OSCInitMethodQueryResponseInfo | ( | struct OSCMethodQueryResponseInfoStruct * | i | ) |
| static callbackListEnds DispatchSubMessage | ( | char * | pattern, | |
| OSCcontainer | c | |||
| ) | [static] |
References AllocCallbackListNode(), callbackListEnds_struct::begin, OSCMethodStruct::callback, OSCContainerStruct::children, OSCContainerStruct::childrenNames, OSCMethodStruct::context, callbackListEnds_struct::end, LONG_ADDR_LEN, OSCContainerStruct::methodNames, OSCContainerStruct::methods, callbackListNode::next, NextSlashOrNull(), OSCContainerStruct::numChildren, OSCContainerStruct::numMethods, OSCGetAddressString(), OSCWarning(), and PatternMatch().
Referenced by OSCDispatchMessage().
| static char * NextSlashOrNull | ( | char * | p | ) | [static] |
Referenced by DispatchSubMessage().
| callbackList OSCDispatchMessage | ( | char * | pattern | ) |
References callbackListEnds_struct::begin, DispatchSubMessage(), and OSCProblem().
Referenced by OSCSendInternalMessageWithRSVP(), and ParseMessage().
Boolean Initialized = FALSE [static] |
Referenced by OSCInitAddressSpace().
OSCcontainer OSCTopLevelContainer [static] |
Referenced by main().
OSCcontainer freeContainers [static] |
OSCMethod freeMethods [static] |
void*(* RealTimeMemoryAllocator)(int numBytes) [static] |
Referenced by OSCInitAddressSpace().
1.5.8