Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cpplib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-cpplib
Commits
92a7ab9f
Commit
92a7ab9f
authored
7 months ago
by
Joscha Schmiedt
Browse files
Options
Downloads
Patches
Plain Diff
Fix broken renaming of c lib functions
parent
9af9b252
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!61
Release 0.3.0
,
!55
Rename caosdb-cpplib to linkahead-cpplib
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/clinkahead.h
+60
-49
60 additions, 49 deletions
include/clinkahead.h
with
60 additions
and
49 deletions
include/clinkahead.h
+
60
−
49
View file @
92a7ab9f
...
...
@@ -144,7 +144,8 @@ int linkahead_connection_create_pem_file_certificate_provider(
*
* EXPERT USE ONLY. Only use it when you know what you are doing.
*/
int
linkahead_connection_delete_certificate_provider
(
linkahead_connection_certificate_provider
*
provider
);
int
linkahead_connection_delete_certificate_provider
(
linkahead_connection_certificate_provider
*
provider
);
/**
* Create a tls-secured connection configuration.
...
...
@@ -217,7 +218,8 @@ int linkahead_authentication_create_plain_password_authenticator(
*
* EXPERT USE ONLY. Only use it when you know what you are doing.
*/
int
linkahead_authentication_delete_authenticator
(
linkahead_authentication_authenticator
*
authenticator
);
int
linkahead_authentication_delete_authenticator
(
linkahead_authentication_authenticator
*
authenticator
);
/**
* Create a connection instance.
...
...
@@ -247,14 +249,15 @@ int linkahead_connection_delete_connection(linkahead_connection_connection *conn
* Request the version of the server.
*/
int
linkahead_connection_get_version_info
(
linkahead_info_version_info
*
out
,
const
linkahead_connection_connection
*
connection
);
const
linkahead_connection_connection
*
connection
);
/**
* Get the default connection from the ConnectionManager.
*
* The default connection is to be specified in a configuration file.
*/
int
linkahead_connection_connection_manager_get_default_connection
(
linkahead_connection_connection
*
out
);
int
linkahead_connection_connection_manager_get_default_connection
(
linkahead_connection_connection
*
out
);
/**
* Get a named connection from the ConnectionManager.
...
...
@@ -262,7 +265,7 @@ int linkahead_connection_connection_manager_get_default_connection(linkahead_con
* The named connection is to be specified in a configuration file.
*/
int
linkahead_connection_connection_manager_get_connection
(
linkahead_connection_connection
*
out
,
const
char
*
name
);
const
char
*
name
);
/****************************************************************************
* ENTITY STUFF AND TRANSACTIONS
...
...
@@ -280,16 +283,16 @@ typedef struct linkahead_transaction_transaction {
* linkahead_transaction_delete_transaction() later on.
*/
int
linkahead_connection_connection_create_transaction
(
linkahead_connection_connection
*
connection
,
linkahead_transaction_transaction
*
out
);
linkahead_transaction_transaction
*
out
);
int
linkahead_transaction_delete_transaction
(
linkahead_transaction_transaction
*
transaction
);
int
linkahead_transaction_transaction_retrieve_by_id
(
linkahead_transaction_transaction
*
transaction
,
const
char
*
id
);
const
char
*
id
);
int
linkahead_transaction_transaction_retrieve_and_download_file_by_id
(
linkahead_transaction_transaction
*
transaction
,
const
char
*
id
,
const
char
*
path
);
int
linkahead_transaction_transaction_retrieve_by_ids
(
linkahead_transaction_transaction
*
transaction
,
const
char
*
ids
[],
int
length
);
int
linkahead_transaction_transaction_retrieve_by_ids
(
linkahead_transaction_transaction
*
transaction
,
const
char
*
ids
[],
int
length
);
int
linkahead_transaction_transaction_query
(
linkahead_transaction_transaction
*
transaction
,
const
char
*
query
);
const
char
*
query
);
int
linkahead_transaction_transaction_execute
(
linkahead_transaction_transaction
*
transaction
);
// TODO(fspreck) execute_asynchronously may be added as a separate
// function once we actually support asynchronous execution.
...
...
@@ -299,13 +302,13 @@ typedef struct linkahead_transaction_result_set {
bool
_deletable
;
}
linkahead_transaction_result_set
;
typedef
struct
d
entity_entity
{
typedef
struct
linkahead_
entity_entity
{
void
*
wrapped_entity
;
bool
_deletable
;
}
d
entity_entity
;
}
linkahead_
entity_entity
;
int
linkahead_transaction_transaction_get_result_set
(
linkahead_transaction_transaction
*
transaction
,
linkahead_transaction_result_set
*
out
);
linkahead_transaction_result_set
*
out
);
/**
* Release the result set from the transaction.
*
...
...
@@ -315,8 +318,8 @@ int linkahead_transaction_transaction_get_result_set(linkahead_transaction_trans
*
* EXPERT USE ONLY. Only use it when you know what you are doing.
*/
int
linkahead_transaction_transaction_release_result_set
(
linkahead_transaction_transaction
*
transaction
,
linkahead_transaction_result_set
*
out
);
int
linkahead_transaction_transaction_release_result_set
(
linkahead_transaction_transaction
*
transaction
,
linkahead_transaction_result_set
*
out
);
/**
* Release the entity from the result set.
*
...
...
@@ -328,7 +331,7 @@ int linkahead_transaction_transaction_release_result_set(linkahead_transaction_t
* EXPERT USE ONLY. Only use it when you know what you are doing.
*/
int
linkahead_transaction_result_set_release_at
(
linkahead_transaction_result_set
*
result_set
,
d
entity_entity
*
entity
,
int
index
);
linkahead_
entity_entity
*
entity
,
int
index
);
/**
* Destructor for linkahead_transaction_result_set.
*
...
...
@@ -336,19 +339,19 @@ int linkahead_transaction_result_set_release_at(linkahead_transaction_result_set
*/
int
linkahead_transaction_delete_result_set
(
linkahead_transaction_result_set
*
result_set
);
int
linkahead_transaction_transaction_get_count_result
(
linkahead_transaction_transaction
*
transaction
,
long
*
out
);
int
linkahead_transaction_transaction_get_count_result
(
linkahead_transaction_transaction
*
transaction
,
long
*
out
);
int
linkahead_transaction_result_set_at
(
linkahead_transaction_result_set
*
result_set
,
linkahead_entity_entity
*
entity
,
int
index
);
linkahead_entity_entity
*
entity
,
int
index
);
int
linkahead_transaction_result_set_size
(
linkahead_transaction_result_set
*
result_set
,
int
*
out
);
int
linkahead_transaction_transaction_insert_entity
(
linkahead_transaction_transaction
*
transaction
,
linkahead_entity_entity
*
entity
);
linkahead_entity_entity
*
entity
);
int
linkahead_transaction_transaction_update_entity
(
linkahead_transaction_transaction
*
transaction
,
linkahead_entity_entity
*
entity
);
linkahead_entity_entity
*
entity
);
int
linkahead_transaction_transaction_delete_by_id
(
linkahead_transaction_transaction
*
transaction
,
const
char
*
id
);
const
char
*
id
);
typedef
struct
linkahead_entity_property
{
void
*
wrapped_property
;
...
...
@@ -381,34 +384,36 @@ int linkahead_entity_entity_get_role(linkahead_entity_entity *entity, char **out
int
linkahead_entity_entity_get_name
(
linkahead_entity_entity
*
entity
,
char
**
out
);
int
linkahead_entity_entity_get_description
(
linkahead_entity_entity
*
entity
,
char
**
out
);
int
linkahead_entity_entity_get_local_path
(
linkahead_entity_entity
*
entity
,
char
**
out
);
int
linkahead_entity_entity_get_datatype
(
linkahead_entity_entity
*
entity
,
linkahead_entity_datatype
*
out
);
int
linkahead_entity_entity_get_datatype
(
linkahead_entity_entity
*
entity
,
linkahead_entity_datatype
*
out
);
int
linkahead_entity_entity_get_unit
(
linkahead_entity_entity
*
entity
,
char
**
out
);
int
linkahead_entity_entity_get_value
(
linkahead_entity_entity
*
entity
,
linkahead_entity_value
*
out
);
int
linkahead_entity_entity_get_version_id
(
linkahead_entity_entity
*
entity
,
char
**
out
);
int
linkahead_entity_entity_get_errors_size
(
linkahead_entity_entity
*
entity
,
int
*
out
);
int
linkahead_entity_entity_get_error
(
linkahead_entity_entity
*
entity
,
linkahead_entity_message
*
out
,
int
index
);
int
linkahead_entity_entity_get_error
(
linkahead_entity_entity
*
entity
,
linkahead_entity_message
*
out
,
int
index
);
int
linkahead_entity_entity_get_warnings_size
(
linkahead_entity_entity
*
entity
,
int
*
out
);
int
linkahead_entity_entity_get_warning
(
linkahead_entity_entity
*
entity
,
linkahead_entity_message
*
out
,
int
index
);
int
linkahead_entity_entity_get_warning
(
linkahead_entity_entity
*
entity
,
linkahead_entity_message
*
out
,
int
index
);
int
linkahead_entity_entity_get_infos_size
(
linkahead_entity_entity
*
entity
,
int
*
out
);
int
linkahead_entity_entity_get_info
(
linkahead_entity_entity
*
entity
,
linkahead_entity_message
*
out
,
int
index
);
int
index
);
int
linkahead_entity_entity_get_properties_size
(
linkahead_entity_entity
*
entity
,
int
*
out
);
int
linkahead_entity_entity_get_property
(
linkahead_entity_entity
*
entity
,
linkahead_entity_property
*
out
,
int
index
);
int
linkahead_entity_entity_get_property
(
linkahead_entity_entity
*
entity
,
linkahead_entity_property
*
out
,
int
index
);
int
linkahead_entity_entity_get_parents_size
(
linkahead_entity_entity
*
entity
,
int
*
out
);
int
linkahead_entity_entity_get_parent
(
linkahead_entity_entity
*
entity
,
linkahead_entity_parent
*
out
,
int
index
);
int
linkahead_entity_entity_get_parent
(
linkahead_entity_entity
*
entity
,
linkahead_entity_parent
*
out
,
int
index
);
int
linkahead_entity_property_get_id
(
linkahead_entity_property
*
property
,
char
**
out
);
int
linkahead_entity_property_get_name
(
linkahead_entity_property
*
property
,
char
**
out
);
int
linkahead_entity_property_get_description
(
linkahead_entity_property
*
property
,
char
**
out
);
int
linkahead_entity_property_get_importance
(
linkahead_entity_property
*
property
,
char
**
out
);
int
linkahead_entity_property_get_datatype
(
linkahead_entity_property
*
property
,
linkahead_entity_datatype
*
out
);
linkahead_entity_datatype
*
out
);
int
linkahead_entity_property_get_unit
(
linkahead_entity_property
*
property
,
char
**
out
);
int
linkahead_entity_property_get_value
(
linkahead_entity_property
*
property
,
linkahead_entity_value
*
out
);
int
linkahead_entity_property_get_value
(
linkahead_entity_property
*
property
,
linkahead_entity_value
*
out
);
int
linkahead_entity_parent_get_id
(
linkahead_entity_parent
*
parent
,
char
**
out
);
int
linkahead_entity_parent_get_name
(
linkahead_entity_parent
*
parent
,
char
**
out
);
int
linkahead_entity_parent_get_description
(
linkahead_entity_parent
*
parent
,
char
**
out
);
...
...
@@ -434,8 +439,8 @@ int linkahead_entity_value_get_as_double(linkahead_entity_value *value, double *
int
linkahead_entity_value_get_as_integer
(
linkahead_entity_value
*
value
,
int64_t
*
out
);
int
linkahead_entity_value_get_as_bool
(
linkahead_entity_value
*
value
,
bool
*
out
);
int
linkahead_entity_value_get_as_vector_size
(
linkahead_entity_value
*
value
,
int
*
out
);
int
linkahead_entity_value_get_as_vector_at
(
linkahead_entity_value
*
value
,
linkahead_entity_value
*
out
,
const
int
index
);
int
linkahead_entity_value_get_as_vector_at
(
linkahead_entity_value
*
value
,
linkahead_entity_value
*
out
,
const
int
index
);
// CONSTRUCTORS AND DESTRUCTORS
int
linkahead_entity_create_entity
(
linkahead_entity_entity
*
out
);
...
...
@@ -449,7 +454,8 @@ int linkahead_entity_delete_parent(linkahead_entity_parent *out);
int
linkahead_entity_create_atomic_datatype
(
linkahead_entity_datatype
*
out
,
const
char
*
name
);
int
linkahead_entity_create_reference_datatype
(
linkahead_entity_datatype
*
out
,
const
char
*
name
);
int
linkahead_entity_create_atomic_list_datatype
(
linkahead_entity_datatype
*
out
,
const
char
*
name
);
int
linkahead_entity_create_reference_list_datatype
(
linkahead_entity_datatype
*
out
,
const
char
*
name
);
int
linkahead_entity_create_reference_list_datatype
(
linkahead_entity_datatype
*
out
,
const
char
*
name
);
int
linkahead_entity_delete_datatype
(
linkahead_entity_datatype
*
out
);
// VALUE CONSTRUCTORS (resolve overloaded constructors)
...
...
@@ -458,39 +464,44 @@ int linkahead_entity_create_string_value(linkahead_entity_value *out, const char
int
linkahead_entity_create_double_value
(
linkahead_entity_value
*
out
,
const
double
value
);
int
linkahead_entity_create_bool_value
(
linkahead_entity_value
*
out
,
const
bool
value
);
int
linkahead_entity_create_int_vector_value
(
linkahead_entity_value
*
out
,
const
int64_t
*
value
,
const
int
length
);
int
linkahead_entity_create_string_vector_value
(
linkahead_entity_value
*
out
,
const
char
**
value
,
const
int
length
);
int
linkahead_entity_create_string_vector_value
(
linkahead_entity_value
*
out
,
const
char
**
value
,
const
int
length
);
int
linkahead_entity_create_double_vector_value
(
linkahead_entity_value
*
out
,
const
double
*
value
,
const
int
length
);
const
int
length
);
int
linkahead_entity_create_bool_vector_value
(
linkahead_entity_value
*
out
,
const
bool
*
value
,
const
int
length
);
const
int
length
);
int
linkahead_entity_delete_value
(
linkahead_entity_value
*
out
);
// SETTERS FOR EVERYTHING THAT MAY BE SET
int
linkahead_entity_entity_set_role
(
linkahead_entity_entity
*
entity
,
const
char
*
role
);
int
linkahead_entity_entity_set_name
(
linkahead_entity_entity
*
entity
,
const
char
*
name
);
int
linkahead_entity_entity_set_description
(
linkahead_entity_entity
*
entity
,
const
char
*
description
);
int
linkahead_entity_entity_set_description
(
linkahead_entity_entity
*
entity
,
const
char
*
description
);
int
linkahead_entity_entity_set_local_path
(
linkahead_entity_entity
*
entity
,
const
char
*
name
);
int
linkahead_entity_entity_set_file_path
(
linkahead_entity_entity
*
entity
,
const
char
*
name
);
int
linkahead_entity_entity_set_datatype
(
linkahead_entity_entity
*
entity
,
linkahead_entity_datatype
*
datatype
);
linkahead_entity_datatype
*
datatype
);
int
linkahead_entity_entity_set_unit
(
linkahead_entity_entity
*
entity
,
const
char
*
unit
);
int
linkahead_entity_entity_set_value
(
linkahead_entity_entity
*
entity
,
linkahead_entity_value
*
value
);
int
linkahead_entity_entity_set_value
(
linkahead_entity_entity
*
entity
,
linkahead_entity_value
*
value
);
int
linkahead_entity_entity_append_parent
(
linkahead_entity_entity
*
entity
,
linkahead_entity_parent
*
parent
);
int
linkahead_entity_entity_append_parent
(
linkahead_entity_entity
*
entity
,
linkahead_entity_parent
*
parent
);
int
linkahead_entity_entity_remove_parent
(
linkahead_entity_entity
*
entity
,
int
index
);
int
linkahead_entity_entity_append_property
(
linkahead_entity_entity
*
entity
,
linkahead_entity_property
*
property
);
linkahead_entity_property
*
property
);
int
linkahead_entity_entity_remove_property
(
linkahead_entity_entity
*
entity
,
int
index
);
int
linkahead_entity_property_set_id
(
linkahead_entity_property
*
property
,
const
char
*
id
);
int
linkahead_entity_property_set_name
(
linkahead_entity_property
*
property
,
const
char
*
name
);
int
linkahead_entity_property_set_datatype
(
linkahead_entity_property
*
property
,
linkahead_entity_datatype
*
datatype
);
int
linkahead_entity_property_set_importance
(
linkahead_entity_property
*
property
,
const
char
*
importance
);
linkahead_entity_datatype
*
datatype
);
int
linkahead_entity_property_set_importance
(
linkahead_entity_property
*
property
,
const
char
*
importance
);
int
linkahead_entity_property_set_unit
(
linkahead_entity_property
*
property
,
const
char
*
unit
);
int
linkahead_entity_property_set_value
(
linkahead_entity_property
*
property
,
linkahead_entity_value
*
value
);
int
linkahead_entity_property_set_value
(
linkahead_entity_property
*
property
,
linkahead_entity_value
*
value
);
int
linkahead_entity_parent_set_id
(
linkahead_entity_parent
*
parent
,
const
char
*
id
);
int
linkahead_entity_parent_set_name
(
linkahead_entity_parent
*
parent
,
const
char
*
name
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment