* uci_perror: Print the last uci error that occured
* @ctx: uci context
* @str: string to print before the error message
- */
+ */
extern void uci_perror(struct uci_context *ctx, const char *str);
/**
struct uci_context
{
struct uci_list root;
-
+
/* for error handling only */
struct uci_parse_context *pctx;
#define uci_list_entry(type, ptr) \
((struct uci_#type *) ((char *)(ptr) - offsetof(struct uci_#type,list)))
-
#define uci_foreach_entry(type, list, ptr) \
for(ptr = uci_list_entry(type, (list)->next); \
&ptr->list != list; \