}
int
-concord_stroid_set_feature_str (const unsigned char* object_id,
- CONCORD_Feature feature,
- unsigned char* value)
+concord_obj_put_feature_value_str (const unsigned char* object_id,
+ CONCORD_Feature feature,
+ unsigned char* value)
{
if (feature == NULL)
return -1;
}
int
-concord_stroid_get_feature_string (const unsigned char* object_id,
- CONCORD_Feature feature,
- CONCORD_String value)
+concord_obj_get_feature_value_string (const unsigned char* object_id,
+ CONCORD_Feature feature,
+ CONCORD_String value)
{
int status;
}
CONCORD_Object
-concord_stroid_get_feature_object (const unsigned char* object_id,
- CONCORD_Feature feature)
+concord_obj_get_feature_value (const unsigned char* object_id,
+ CONCORD_Feature feature)
{
DBT valdatum;
int status;
}
unsigned char*
-concord_stroid_gets_feature (const unsigned char* object_id,
- CONCORD_Feature feature,
- unsigned char* dst, size_t size)
+concord_obj_gets_feature_value (const unsigned char* object_id,
+ CONCORD_Feature feature,
+ unsigned char* dst, size_t size)
{
DBT valdatum;
int status;
}
int
-concord_feature_foreach_object_string (CONCORD_Feature feature,
- int (*func)(CONCORD_String object_id,
- CONCORD_Feature feature,
- CONCORD_String value))
+concord_feature_foreach_obj_string (CONCORD_Feature feature,
+ int (*func)(CONCORD_String object_id,
+ CONCORD_Feature feature,
+ CONCORD_String value))
{
CONCORD_String_Tank key, value;
DBC *dbcp;
}
int
-concord_index_strid_get_object_string (CONCORD_INDEX index,
- const unsigned char* strid,
- CONCORD_String object_id)
+concord_index_strid_put_obj (CONCORD_INDEX index,
+ const unsigned char* strid,
+ unsigned char* object_id)
{
if (index == NULL)
return -1;
- if (concord_index_setup_db (index, 0))
+ if (concord_index_setup_db (index, 1))
return -1;
- return CONCORD_BDB_get (index->db, strid, object_id);
+ return CONCORD_BDB_put (index->db, strid, object_id);
}
int
-concord_index_strid_set_object_str (CONCORD_INDEX index,
+concord_index_strid_get_obj_string (CONCORD_INDEX index,
const unsigned char* strid,
- unsigned char* object_id)
+ CONCORD_String object_id)
{
if (index == NULL)
return -1;
- if (concord_index_setup_db (index, 1))
+ if (concord_index_setup_db (index, 0))
return -1;
- return CONCORD_BDB_put (index->db, strid, object_id);
+ return CONCORD_BDB_get (index->db, strid, object_id);
}
int concord_feature_sync (CONCORD_Feature feature);
int
-concord_stroid_set_feature_str (const unsigned char* object_id,
- CONCORD_Feature feature,
- unsigned char* value);
-
-int
-concord_stroid_get_feature_string (const unsigned char* object_id,
+concord_obj_put_feature_value_str (const unsigned char* object_id,
CONCORD_Feature feature,
- CONCORD_String value);
+ unsigned char* value);
+
CONCORD_Object
-concord_stroid_get_feature_object (const unsigned char* object_id,
- CONCORD_Feature feature);
+concord_obj_get_feature_value (const unsigned char* object_id,
+ CONCORD_Feature feature);
+int
+concord_obj_get_feature_value_string (const unsigned char* object_id,
+ CONCORD_Feature feature,
+ CONCORD_String value);
unsigned char*
-concord_stroid_gets_feature (const unsigned char* object_id,
- CONCORD_Feature feature,
- unsigned char* dst, size_t size);
+concord_obj_gets_feature_value (const unsigned char* object_id,
+ CONCORD_Feature feature,
+ unsigned char* dst, size_t size);
int
-concord_feature_foreach_object_string (CONCORD_Feature feature,
- int (*func)
- (CONCORD_String object_id,
- CONCORD_Feature feature,
- CONCORD_String valdatum));
+concord_feature_foreach_obj_string (CONCORD_Feature feature,
+ int (*func)
+ (CONCORD_String object_id,
+ CONCORD_Feature feature,
+ CONCORD_String valdatum));
typedef struct CONCORD_INDEX_Table CONCORD_INDEX_Table;
int concord_index_sync (CONCORD_INDEX index);
-int concord_index_strid_get_object_string (CONCORD_INDEX index,
- const unsigned char* strid,
- CONCORD_String object_id);
+int concord_index_strid_put_obj (CONCORD_INDEX index,
+ const unsigned char* strid,
+ unsigned char* object_id);
-int concord_index_strid_set_object_str (CONCORD_INDEX index,
+int concord_index_strid_get_obj_string (CONCORD_INDEX index,
const unsigned char* strid,
- unsigned char* object_id);
+ CONCORD_String object_id);
#if 0
{