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

struct ldb_ldif* ldb_ldif_read_file ( struct ldb_context *  ldb,
FILE *  f 
) [read]

Read an LDIF message from a file

This function reads the next LDIF message from the contents of a file stream. If you want to get all of the LDIF messages, you will need to repeatedly call this function, until it returns NULL.

ldb the ldb context (from ldb_init())
f the file stream to read from (typically from fdopen())
See also:
ldb_ldif_read_string for an equivalent function that will read from a string (char array).

ldb_ldif_write_file for the writer equivalent to this function.

Definition at line 695 of file ldb_ldif.c.

      struct ldif_read_file_state state;
      state.f = f;
      return ldb_ldif_read(ldb, fgetc_file, &state);

Generated by  Doxygen 1.6.0   Back to index