database_iter_context_t Struct Reference

Iteration context used to iterate over a set of lwatch_path_info_t structs returned by a watch database query. More...

#include <watch_database.h>

List of all members.

Public Attributes

database_iter_next_t next
 pointer to function returning pointer to lwatch_path_info_t
int error
 error code from query


Detailed Description

Iteration context used to iterate over a set of lwatch_path_info_t structs returned by a watch database query.

Example:

 struct database_iter_context_t *path_iter;
 struct lwatch_path_info_t *path_info;

 if ((error = database_query_all_paths_iter(&path_iter, NULL)) != SUCCESS) {
     // handle error
  }

 while ((path_info = path_iter->next(path_iter))) {
     // use path_info
 }

Definition at line 156 of file watch_database.h.


The documentation for this struct was generated from the following file:

Generated on Mon Aug 31 10:06:21 2009 by  doxygen 1.5.8