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

#define CHECK_LIST ( list   ) 

Value:

do {                                      \
    if (NULL == list) {                         \
      return (GP_ERROR_BAD_PARAMETERS);               \
    } else if (list->ref_count == 0) {                \
      /* catch calls to already freed list */         \
      return (GP_ERROR_BAD_PARAMETERS);               \
    }                                     \
  } while (0)
check that the list is valid

Definition at line 38 of file gphoto2-list.c.

Referenced by gp_list_append(), gp_list_count(), gp_list_find_by_name(), gp_list_free(), gp_list_get_name(), gp_list_get_value(), gp_list_populate(), gp_list_ref(), gp_list_reset(), gp_list_set_name(), gp_list_set_value(), gp_list_sort(), and gp_list_unref().


Generated by  Doxygen 1.6.0   Back to index