Logo Search packages:      
Sourcecode: ldb version File versions  Download package

int ldb_msg_add ( struct ldb_message msg,
const struct ldb_message_element el,
int  flags 

add a element to a ldb_message

Definition at line 162 of file ldb_msg.c.

References ldb_message::elements, ldb_message_element::flags, LDB_ERR_OPERATIONS_ERROR, LDB_SUCCESS, ldb_message_element::name, and ldb_message::num_elements.

      if (ldb_msg_add_empty(msg, el->name, flags, NULL) != 0) {
            return LDB_ERR_OPERATIONS_ERROR;

      msg->elements[msg->num_elements-1] = *el;
      msg->elements[msg->num_elements-1].flags = flags;

      return LDB_SUCCESS;

Generated by  Doxygen 1.6.0   Back to index