Difference between revisions of "Samba4/LDB/Message"

From SambaWiki
 
Line 1: Line 1:
  +
= Structures =
= ldb_message_element =
 
   
  +
== ldb_val ==
struct ldb_message_element {
 
  +
unsigned int flags;
 
  +
<pre>
const char *name;
 
 
struct ldb_val {
unsigned int num_values;
 
  +
uint8_t *data; /*!< result data */
struct ldb_val *values;
 
  +
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 ==
   
  +
<pre>
struct ldb_message {
 
struct ldb_dn *dn;
+
struct ldb_message {
  +
struct ldb_dn *dn;
unsigned int num_elements;
+
unsigned int num_elements;
struct ldb_message_element *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.