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

Go to the source code of this file.

Enumerations

enum  explain_v4l2_control_check_id_t { explain_v4l2_control_check_id_no_idea, explain_v4l2_control_check_id_nosuch, explain_v4l2_control_check_id_notsup, explain_v4l2_control_check_id_ok }

Functions

void explain_buffer_v4l2_control (explain_string_buffer_t *sb, const struct v4l2_control *data, int extra, int fildes)
enum
explain_v4l2_control_check_id_t 
explain_v4l2_control_check_id (int fildes, const struct v4l2_control *data)

Enumeration Type Documentation

Enumerator:
explain_v4l2_control_check_id_no_idea 
explain_v4l2_control_check_id_nosuch 
explain_v4l2_control_check_id_notsup 
explain_v4l2_control_check_id_ok 

Definition at line 42 of file v4l2_control.h.


Function Documentation

void explain_buffer_v4l2_control ( explain_string_buffer_t sb,
const struct v4l2_control *  data,
int  extra,
int  fildes 
)

The explain_buffer_v4l2_control function may be used to print a representation of a v4l2_control structure.

Parameters:
sbThe string buffer to print into.
dataThe v4l2_control structure to be printed.
extraprint the returned fields as well
fildesthe associated file descriptor, or -1 if not relevant
enum explain_v4l2_control_check_id_t explain_v4l2_control_check_id ( int  fildes,
const struct v4l2_control *  data 
)

The explain_v4l2_control_check_id function is used to check the id field of a v4l2_control 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.