Go to the source code of this file.
Classes | |
struct | IpCamList |
struct | list_head |
Macros | |
#define | CAMLIST_ADD_DUP 1 |
#define | CAMLIST_ADD_OK 0 |
#define | INIT_LIST_HEAD(ptr) |
#define | list_entry(ptr, type, member) ((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member))) |
#define | list_for_each(pos, head) |
#define | list_for_each_entry(pos, head, member) |
#define | list_for_each_entry_safe(pos, n, head, member) |
#define | list_for_each_prev(pos, head) |
#define | list_for_each_safe(pos, n, head) |
#define | LIST_HEAD(name) struct list_head name = LIST_HEAD_INIT(name) |
#define | LIST_HEAD_INIT(name) { &(name), &(name) } |
#define | WGE100_CAMINFO_LEN 100 |
Enumerations | |
enum | IpCamStatus { CamStatusDiscovered, CamStatusConfigured, CamStatusVideo, CamStatusError, CamStatusMissing } |
Functions | |
static void | __list_add (struct list_head *new_item, struct list_head *prev, struct list_head *next) |
static void | __list_del (struct list_head *prev, struct list_head *next) |
static void | __list_splice (struct list_head *list, struct list_head *head) |
static void | list_add (struct list_head *new_item, struct list_head *head) |
static void | list_add_tail (struct list_head *new_item, struct list_head *head) |
static void | list_del (struct list_head *entry) |
static void | list_del_init (struct list_head *entry) |
static int | list_empty (struct list_head *head) |
static void | list_move (struct list_head *list, struct list_head *head) |
static void | list_move_tail (struct list_head *list, struct list_head *head) |
static void | list_splice (struct list_head *list, struct list_head *head) |
static void | list_splice_init (struct list_head *list, struct list_head *head) |
int | wge100CamListAdd (IpCamList *ipCamList, IpCamList *newItem) |
void | wge100CamListDelAll (IpCamList *ipCamList) |
int | wge100CamListDelEntry (IpCamList *ipCamList, int index) |
int | wge100CamListFind (IpCamList *ipCamList, uint32_t serial) |
IpCamList * | wge100CamListGetEntry (const IpCamList *ipCamList, int index) |
int | wge100CamListInit (IpCamList *ipCamList) |
int | wge100CamListNumEntries (const IpCamList *ipCamList) |
Macros in this file are from Linux Kernel (include/linux/list.h) and modified by simply removing hardware prefetching of list items. Here by copyright, credits attributed to wherever they belong. Kulesh Shanmugasundaram (kulesh [squiggly] isis.poly.edu)
Definition in file list.h.
#define INIT_LIST_HEAD | ( | ptr | ) |
#define list_entry | ( | ptr, | |
type, | |||
member | |||
) | ((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member))) |
#define list_for_each | ( | pos, | |
head | |||
) |
#define list_for_each_entry | ( | pos, | |
head, | |||
member | |||
) |
list_for_each_entry - iterate over list of given type : the type * to use as a loop counter. : the head for your list. : the name of the list_struct within the struct.
#define list_for_each_entry_safe | ( | pos, | |
n, | |||
head, | |||
member | |||
) |
list_for_each_entry_safe - iterate over list of given type safe against removal of list entry : the type * to use as a loop counter.
: another type * to use as temporary storage : the head for your list. : the name of the list_struct within the struct.
#define list_for_each_prev | ( | pos, | |
head | |||
) |
#define list_for_each_safe | ( | pos, | |
n, | |||
head | |||
) |
#define LIST_HEAD | ( | name | ) | struct list_head name = LIST_HEAD_INIT(name) |
enum IpCamStatus |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Adds a new camera to camera list ipCamList if that serial number is not already in the list.
ipCamList | Pointer to the IpCamList head |
newItem | Pointer to an IpCamList structure that describes the new camera |
void wge100CamListDelAll | ( | IpCamList * | ipCamList | ) |
int wge100CamListDelEntry | ( | IpCamList * | ipCamList, |
int | index | ||
) |
Utility function to remove a specific element number from the camera list.
ipCamList | Pointer to the camera list head |
index | Number of the list element to remove (0..max) |
int wge100CamListFind | ( | IpCamList * | ipCamList, |
uint32_t | serial | ||
) |
Utility function to return a specific element number from the camera list.
ipCamList | Pointer to the camera list head |
index | Number of the list element to returna (0..max) |
int wge100CamListInit | ( | IpCamList * | ipCamList | ) |