libexplain  1.4.D001
Enumerations | Functions
libexplain/buffer/v4l2_queryctrl.h File Reference
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Enumerations

enum  explain_v4l2_queryctrl_check_id_t { explain_v4l2_queryctrl_check_id_no_idea, explain_v4l2_queryctrl_check_id_nosuch, explain_v4l2_queryctrl_check_id_notsup, explain_v4l2_queryctrl_check_id_ok }

Functions

void explain_buffer_v4l2_queryctrl (explain_string_buffer_t *sb, const struct v4l2_queryctrl *data, int extra, int fildes)
enum
explain_v4l2_queryctrl_check_id_t 
explain_v4l2_queryctrl_check_id (int fildes, const struct v4l2_queryctrl *data)

Enumeration Type Documentation

Enumerator:
explain_v4l2_queryctrl_check_id_no_idea 
explain_v4l2_queryctrl_check_id_nosuch 
explain_v4l2_queryctrl_check_id_notsup 
explain_v4l2_queryctrl_check_id_ok 

Definition at line 42 of file v4l2_queryctrl.h.


Function Documentation

void explain_buffer_v4l2_queryctrl ( explain_string_buffer_t sb,
const struct v4l2_queryctrl *  data,
int  extra,
int  fildes 
)

The explain_buffer_v4l2_queryctrl function may be used to print a representation of a v4l2_queryctrl structure.

Parameters:
sbThe string buffer to print into.
dataThe v4l2_queryctrl structure to be printed.
extraprint the return values if true.
fildesThes associated file descriptor (for additional details, if necessary)
enum explain_v4l2_queryctrl_check_id_t explain_v4l2_queryctrl_check_id ( int  fildes,
const struct v4l2_queryctrl *  data 
)

The explain_v4l2_queryctrl_check_id function is used to check the id member of a v4l2_queryctrl struct.

Parameters:
fildesThe associated file descriptor
dataThe control struct to have its id member checked.
Returns:
no_idea if the file descriptor is unhelpful or the pointer is efault, nosuch if there is no such control id, notsup if the control id exists, but is not supported by the device, ok if nothing wrong could be found.