Difference between revisions of "Samba4/LDB/Message"

 
Line 1: Line 1:
= ldb_message_element =
+
= Structures =
  
struct ldb_message_element {
+
== ldb_val ==
    unsigned int flags;
+
 
    const char *name;
+
<pre>
    unsigned int num_values;
+
struct ldb_val {
    struct ldb_val *values;
+
    uint8_t *data; /*!< result data */
};
+
    size_t length; /*!< length of data */
 +
};
 +
</pre>
 +
 
 +
== ldb_message_element ==
 +
 
 +
<pre>
 +
struct ldb_message_element {
 +
    unsigned int flags;
 +
    const char *name;
 +
    unsigned int num_values;
 +
    struct ldb_val *values;
 +
};
 +
</pre>
  
 
Results are given back as arrays of ldb_message_element.
 
Results are given back as arrays of ldb_message_element.
  
= ldb_message =
+
== ldb_message ==
  
struct ldb_message {
+
<pre>
    struct ldb_dn *dn;
+
struct ldb_message {
    unsigned int num_elements;
+
    struct ldb_dn *dn;
    struct ldb_message_element *elements;
+
    unsigned int num_elements;
};
+
    struct ldb_message_element *elements;
 +
};
 +
</pre>
  
 
An ldb_message represents all or part of a record. It can contain an arbitrary number of elements.
 
An ldb_message represents all or part of a record. It can contain an arbitrary number of elements.

Revision as of 19:50, 25 September 2009

Structures

ldb_val

struct ldb_val {
    uint8_t *data; /*!< result data */
    size_t length; /*!< length of data */
};

ldb_message_element

struct ldb_message_element {
    unsigned int flags;
    const char *name;
    unsigned int num_values;
    struct ldb_val *values;
};

Results are given back as arrays of ldb_message_element.

ldb_message

struct ldb_message {
    struct ldb_dn *dn;
    unsigned int num_elements;
    struct ldb_message_element *elements;
};

An ldb_message represents all or part of a record. It can contain an arbitrary number of elements.