Skip to content
Snippets Groups Projects
Verified Commit 321264f5 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

Add more declarations in ccaosdb.h

parent ef20b937
No related branches found
No related tags found
1 merge request!23Copy constructor for result set and entity
Pipeline #13215 passed
Pipeline: caosdb-cppinttest

#13216

    ...@@ -297,12 +297,17 @@ typedef struct caosdb_transaction_result_set { ...@@ -297,12 +297,17 @@ typedef struct caosdb_transaction_result_set {
    bool _deletable = false; bool _deletable = false;
    } caosdb_transaction_result_set; } caosdb_transaction_result_set;
    typedef struct caosdb_entity_entity {
    void *wrapped_entity;
    bool _deletable = false;
    } caosdb_entity_entity;
    int caosdb_transaction_transaction_get_result_set(caosdb_transaction_transaction *transaction, int caosdb_transaction_transaction_get_result_set(caosdb_transaction_transaction *transaction,
    caosdb_transaction_result_set *out); caosdb_transaction_result_set *out);
    /** /**
    * Release the result set from the transaction. * Release the result set from the transaction.
    * *
    * The transactions is spoiled after this action and should be used anymore. * The transactions is spoiled after this action and should not be used anymore.
    * *
    * Note: The result_set has to be deleted via caosdb_transaction_delete_result_set. * Note: The result_set has to be deleted via caosdb_transaction_delete_result_set.
    * *
    ...@@ -310,6 +315,18 @@ int caosdb_transaction_transaction_get_result_set(caosdb_transaction_transaction ...@@ -310,6 +315,18 @@ int caosdb_transaction_transaction_get_result_set(caosdb_transaction_transaction
    */ */
    int caosdb_transaction_transaction_release_result_set(caosdb_transaction_transaction *transaction, int caosdb_transaction_transaction_release_result_set(caosdb_transaction_transaction *transaction,
    caosdb_transaction_result_set *out); caosdb_transaction_result_set *out);
    /**
    * Release the entity from the result set.
    *
    * Each entity (each index) can be released once. The result set is spoiled
    * after this action and should not be used for anything else anymore.
    *
    * Note: The result_set has to be deleted via caosdb_entity_delete_entity.
    *
    * EXPERT USE ONLY. Only use it when you know what you are doing.
    */
    int caosdb_transaction_result_set_release_at(caosdb_transaction_result_set *result_set,
    caosdb_entity_entity *entity, int index);
    /** /**
    * Destructor for caosdb_transaction_result_set. * Destructor for caosdb_transaction_result_set.
    * *
    ...@@ -320,11 +337,6 @@ int caosdb_transaction_delete_result_set(caosdb_transaction_result_set *result_s ...@@ -320,11 +337,6 @@ int caosdb_transaction_delete_result_set(caosdb_transaction_result_set *result_s
    int caosdb_transaction_transaction_get_count_result(caosdb_transaction_transaction *transaction, int caosdb_transaction_transaction_get_count_result(caosdb_transaction_transaction *transaction,
    long *out); long *out);
    typedef struct caosdb_entity_entity {
    void *wrapped_entity;
    bool _deletable = false;
    } caosdb_entity_entity;
    int caosdb_transaction_result_set_at(caosdb_transaction_result_set *result_set, int caosdb_transaction_result_set_at(caosdb_transaction_result_set *result_set,
    caosdb_entity_entity *entity, int index); caosdb_entity_entity *entity, int index);
    int caosdb_transaction_result_set_size(caosdb_transaction_result_set *result_set, int *out); int caosdb_transaction_result_set_size(caosdb_transaction_result_set *result_set, int *out);
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment