00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef INTEGRA_NAMESPACE_H
00022 #define INTEGRA_NAMESPACE_H
00023
00024 #ifdef __cplusplus
00025 extern "C" {
00026 #endif
00027
00033 #include "Integra/integra_core_schema.h"
00034 #include "Integra/integra_port.h"
00035
00036
00037 #define NTG_NAMESPACE_SIZE 98317
00038
00042 enum ntg_ns_types_ {
00043 NTG_NS_OSC,
00044 NTG_NS_DBUS,
00045 NTG_NS_XML_RPC
00046 };
00047
00055 typedef struct ntg_namespace_ {
00056
00057 unsigned int n_registered_ports,
00058 n_registered_modules,
00059 *port_counts;
00060 ntg_port *ports;
00061
00062 } ntg_namespace;
00063
00065 typedef struct ntg_address_list_ {
00066 char **addresses;
00067 unsigned int n_addresses;
00068 } ntg_address_list;
00069
00077 void ntg_get_namespace(const ntg_definition *definition,
00078 ntg_address_list *address_list);
00079
00083 void ntg_register_namespace(const char *instance_name, ntg_id instance_id,
00084 const unsigned int total_attributes,
00085 const unsigned int port_offset,
00086 const ntg_definition *definition);
00087
00091 unsigned int ntg_address_hash(const char *address);
00092
00096 ntg_port *ntg_address_resolve(const char *address);
00097
00111 char *ntg_name_reformat(const char *name);
00112
00123 char *ntg_address_construct(const char * class_name,
00124 const char *attribute_name,
00125 const int type);
00126
00127 #ifdef __cplusplus
00128 }
00129 #endif
00130
00131 #endif