|
|
|
@@ -229,93 +229,117 @@ LIB_EXPORT int jack_set_property(jack_client_t* ext_client, jack_uuid_t subject, |
|
|
|
{ |
|
|
|
JackGlobals::CheckContext("jack_set_property"); |
|
|
|
|
|
|
|
JackClient* client = (JackClient*)ext_client; |
|
|
|
jack_log("jack_set_property ext_client %x client %x ", ext_client, client); |
|
|
|
if (client == NULL) { |
|
|
|
jack_error("jack_set_property called with a NULL client"); |
|
|
|
return -1; |
|
|
|
} else { |
|
|
|
JackMetadata* metadata = GetMetadata(); |
|
|
|
return (metadata ? metadata->SetProperty(client, subject, key, value, type) : -1); |
|
|
|
} |
|
|
|
jack_error("jack_set_property is not implemented"); |
|
|
|
return -1; |
|
|
|
|
|
|
|
// JackClient* client = (JackClient*)ext_client; |
|
|
|
// jack_log("jack_set_property ext_client %x client %x ", ext_client, client); |
|
|
|
// if (client == NULL) { |
|
|
|
// jack_error("jack_set_property called with a NULL client"); |
|
|
|
// return -1; |
|
|
|
// } else { |
|
|
|
// JackMetadata* metadata = GetMetadata(); |
|
|
|
// return (metadata ? metadata->SetProperty(client, subject, key, value, type) : -1); |
|
|
|
// } |
|
|
|
} |
|
|
|
|
|
|
|
LIB_EXPORT int jack_get_property(jack_uuid_t subject, const char* key, char** value, char** type) |
|
|
|
{ |
|
|
|
JackGlobals::CheckContext("jack_get_property"); |
|
|
|
|
|
|
|
JackMetadata* metadata = GetMetadata(); |
|
|
|
return (metadata ? metadata->GetProperty(subject, key, value, type) : -1); |
|
|
|
jack_error("jack_get_property is not implemented"); |
|
|
|
return -1; |
|
|
|
|
|
|
|
// JackMetadata* metadata = GetMetadata(); |
|
|
|
// return (metadata ? metadata->GetProperty(subject, key, value, type) : -1); |
|
|
|
} |
|
|
|
|
|
|
|
LIB_EXPORT void jack_free_description(jack_description_t* desc, int free_actual_description_too) |
|
|
|
{ |
|
|
|
JackGlobals::CheckContext("jack_free_description"); |
|
|
|
|
|
|
|
JackMetadata* metadata = GetMetadata(); |
|
|
|
if (metadata) |
|
|
|
metadata->FreeDescription(desc, free_actual_description_too); |
|
|
|
jack_error("jack_free_description is not implemented"); |
|
|
|
return; |
|
|
|
|
|
|
|
// JackMetadata* metadata = GetMetadata(); |
|
|
|
// if (metadata) |
|
|
|
// metadata->FreeDescription(desc, free_actual_description_too); |
|
|
|
} |
|
|
|
|
|
|
|
LIB_EXPORT int jack_get_properties(jack_uuid_t subject, jack_description_t* desc) |
|
|
|
{ |
|
|
|
JackGlobals::CheckContext("jack_get_properties"); |
|
|
|
|
|
|
|
JackMetadata* metadata = GetMetadata(); |
|
|
|
return (metadata ? metadata->GetProperties(subject, desc) : -1); |
|
|
|
jack_error("jack_get_properties is not implemented"); |
|
|
|
return -1; |
|
|
|
|
|
|
|
// JackMetadata* metadata = GetMetadata(); |
|
|
|
// return (metadata ? metadata->GetProperties(subject, desc) : -1); |
|
|
|
} |
|
|
|
|
|
|
|
LIB_EXPORT int jack_get_all_properties(jack_description_t** descriptions) |
|
|
|
{ |
|
|
|
JackGlobals::CheckContext("jack_get_all_properties"); |
|
|
|
|
|
|
|
JackMetadata* metadata = GetMetadata(); |
|
|
|
return (metadata ? metadata->GetAllProperties(descriptions) : -1); |
|
|
|
jack_error("jack_get_all_properties is not implemented"); |
|
|
|
return -1; |
|
|
|
|
|
|
|
// JackMetadata* metadata = GetMetadata(); |
|
|
|
// return (metadata ? metadata->GetAllProperties(descriptions) : -1); |
|
|
|
} |
|
|
|
|
|
|
|
LIB_EXPORT int jack_remove_property(jack_client_t* ext_client, jack_uuid_t subject, const char* key) |
|
|
|
{ |
|
|
|
JackGlobals::CheckContext("jack_remove_property"); |
|
|
|
|
|
|
|
JackClient* client = (JackClient*)ext_client; |
|
|
|
jack_log("jack_remove_property ext_client %x client %x ", ext_client, client); |
|
|
|
if (client == NULL) { |
|
|
|
jack_error("jack_remove_property called with a NULL client"); |
|
|
|
return -1; |
|
|
|
} else { |
|
|
|
JackMetadata* metadata = GetMetadata(); |
|
|
|
return (metadata ? metadata->RemoveProperty(client, subject, key) : -1); |
|
|
|
} |
|
|
|
jack_error("jack_remove_property is not implemented"); |
|
|
|
return -1; |
|
|
|
|
|
|
|
// JackClient* client = (JackClient*)ext_client; |
|
|
|
// jack_log("jack_remove_property ext_client %x client %x ", ext_client, client); |
|
|
|
// if (client == NULL) { |
|
|
|
// jack_error("jack_remove_property called with a NULL client"); |
|
|
|
// return -1; |
|
|
|
// } else { |
|
|
|
// JackMetadata* metadata = GetMetadata(); |
|
|
|
// return (metadata ? metadata->RemoveProperty(client, subject, key) : -1); |
|
|
|
// } |
|
|
|
} |
|
|
|
|
|
|
|
LIB_EXPORT int jack_remove_properties(jack_client_t* ext_client, jack_uuid_t subject) |
|
|
|
{ |
|
|
|
JackGlobals::CheckContext("jack_remove_properties"); |
|
|
|
|
|
|
|
JackClient* client = (JackClient*)ext_client; |
|
|
|
jack_log("jack_remove_properties ext_client %x client %x ", ext_client, client); |
|
|
|
if (client == NULL) { |
|
|
|
jack_error("jack_remove_properties called with a NULL client"); |
|
|
|
return -1; |
|
|
|
} else { |
|
|
|
JackMetadata* metadata = GetMetadata(); |
|
|
|
return (metadata ? metadata->RemoveProperties(client, subject) : -1); |
|
|
|
} |
|
|
|
jack_error("jack_remove_properties is not implemented"); |
|
|
|
return -1; |
|
|
|
|
|
|
|
// JackClient* client = (JackClient*)ext_client; |
|
|
|
// jack_log("jack_remove_properties ext_client %x client %x ", ext_client, client); |
|
|
|
// if (client == NULL) { |
|
|
|
// jack_error("jack_remove_properties called with a NULL client"); |
|
|
|
// return -1; |
|
|
|
// } else { |
|
|
|
// JackMetadata* metadata = GetMetadata(); |
|
|
|
// return (metadata ? metadata->RemoveProperties(client, subject) : -1); |
|
|
|
// } |
|
|
|
} |
|
|
|
|
|
|
|
LIB_EXPORT int jack_remove_all_properties(jack_client_t* ext_client) |
|
|
|
{ |
|
|
|
JackGlobals::CheckContext("jack_remove_all_properties"); |
|
|
|
|
|
|
|
JackClient* client = (JackClient*)ext_client; |
|
|
|
jack_log("jack_remove_all_properties ext_client %x client %x ", ext_client, client); |
|
|
|
if (client == NULL) { |
|
|
|
jack_error("jack_remove_all_properties called with a NULL client"); |
|
|
|
return -1; |
|
|
|
} else { |
|
|
|
JackMetadata* metadata = GetMetadata(); |
|
|
|
return (metadata ? metadata->RemoveAllProperties(client) : -1); |
|
|
|
} |
|
|
|
jack_error("jack_remove_all_properties is not implemented"); |
|
|
|
return -1; |
|
|
|
|
|
|
|
// JackClient* client = (JackClient*)ext_client; |
|
|
|
// jack_log("jack_remove_all_properties ext_client %x client %x ", ext_client, client); |
|
|
|
// if (client == NULL) { |
|
|
|
// jack_error("jack_remove_all_properties called with a NULL client"); |
|
|
|
// return -1; |
|
|
|
// } else { |
|
|
|
// JackMetadata* metadata = GetMetadata(); |
|
|
|
// return (metadata ? metadata->RemoveAllProperties(client) : -1); |
|
|
|
// } |
|
|
|
} |
|
|
|
|
|
|
|
LIB_EXPORT int jack_set_property_change_callback(jack_client_t* ext_client, JackPropertyChangeCallback callback, void* arg) |
|
|
|
|