Network Events

Table of Contents

Synopsis
Description
Details

Network Events - information from network clients

Synopsis

enum    EDNetEventType;
struct  EDNetEvent;
struct  EDNetEventConnect;
struct  EDNetEventConnectReply;
struct  EDNetEventShutdownReply;
struct  EDNetEventSessionList;
struct  EDNetEventUserRole;
struct  EDNetEventChannelList;
struct  EDNetEventChannelProperty;
struct  EDNetEventChannelPropertyRequest;
struct  EDNetEventStreamRequest;
struct  EDNetEventStreamRequestReply;
struct  EDNetEventDeviceInfo;
struct  EDNetEventDeviceControl;
struct  EDNetEventDeviceEvent;
struct  EDNetEventPhone;
struct  EDNetEventDirRequest;
struct  EDNetEventDirReply;
struct  EDNetEventConfig;
struct  EDNetEventMpegFileOpen;
struct  EDNetEventMpegFileOpenReply;
struct  EDNetEventMpegFileRead;
struct  EDNetEventMpegFileReadReply;
struct  EDNetEventMpegFileSeek;
struct  EDNetEventMpegFileSeekReply;
struct  EDNetEventMpegFileClose;
struct  EDNetEventMpegFileCloseReply;
struct  EDNetEventFileRequest;
struct  EDNetEventFileGet;
struct  EDNetEventFileRequestCancel;
struct  EDNetEventFrame;
struct  EDNetEventSignal;
struct  EDNetEventWantedFrame;

void ednet_event_ref   (EDNetEvent *event);
void ednet_event_unref (EDNetEvent *event);

Description

Network events are signaled by network client objects in order to notify information about the remote server.

Some events are used in library internal, and they are not notified to applications.

Details

EDNetEventType

typedef enum
{
  EDNET_EVENT_CONNECT                  = 0,
  EDNET_EVENT_CONNECT_REPLY            = 1,
  EDNET_EVENT_SHUTDOWN                 = 2,
  EDNET_EVENT_SHUTDOWN_REPLY           = 3,
  EDNET_EVENT_SESSION_LIST             = 4,
  EDNET_EVENT_USER_ROLE                = 5,
  EDNET_EVENT_CHANNEL_LIST             = 6,
  EDNET_EVENT_CHANNEL_LIST_REQUEST     = 7,
  EDNET_EVENT_CHANNEL_PROPERTY         = 8,
  EDNET_EVENT_CHANNEL_PROPERTY_SET     = 9,
  EDNET_EVENT_CHANNEL_PROPERTY_REQUEST = 10,
  EDNET_EVENT_STREAM_REQUEST           = 11,
  EDNET_EVENT_STREAM_REQUEST_REPLY     = 12,
  EDNET_EVENT_DEVICE_INFO              = 13,
  EDNET_EVENT_DEVICE_CONTROL           = 14,
  EDNET_EVENT_DEVICE_EVENT             = 15,
  EDNET_EVENT_PHONE                    = 16,
  EDNET_EVENT_DIR_REQUEST              = 17,
  EDNET_EVENT_DIR_REPLY                = 18,
  EDNET_EVENT_CONFIG_GET               = 19,
  EDNET_EVENT_CONFIG_SET               = 20,
  EDNET_EVENT_CONFIG_REPLY             = 21,
  EDNET_EVENT_MPEG_FILE_OPEN           = 22,
  EDNET_EVENT_MPEG_FILE_OPEN_REPLY     = 23,
  EDNET_EVENT_MPEG_FILE_READ           = 24,
  EDNET_EVENT_MPEG_FILE_READ_VIDEO     = 25,
  EDNET_EVENT_MPEG_FILE_READ_REPLY     = 26,
  EDNET_EVENT_MPEG_FILE_SEEK           = 27,
  EDNET_EVENT_MPEG_FILE_SEEK_REPLY     = 28,
  EDNET_EVENT_MPEG_FILE_CLOSE          = 29,
  EDNET_EVENT_MPEG_FILE_CLOSE_REPLY    = 30,
  EDNET_EVENT_FILE_REQUEST             = 31,
  EDNET_EVENT_FILE_GET                 = 32,
  EDNET_EVENT_FILE_REQUEST_CANCEL      = 33,
  EDNET_EVENT_FRAME_TRANSMIT           = 34,
  EDNET_EVENT_SIGNAL                   = 35,
  EDNET_EVENT_WANTED_FRAME             = 36,
  EDNET_EVENT_QUIT                     = 37,
  EDNET_EVENT_MAX
} EDNetEventType;

Event types.

EDNET_EVENT_CONNECT :

EDNetEventConnect

EDNET_EVENT_CONNECT_REPLY :

EDNetEventConnectReply

EDNET_EVENT_SHUTDOWN :

EDNetEvent

EDNET_EVENT_SHUTDOWN_REPLY :

EDNetEventShutdownReply

EDNET_EVENT_SESSION_LIST :

EDNetEventSessionList

EDNET_EVENT_USER_ROLE :

EDNetEventUserRole

EDNET_EVENT_CHANNEL_LIST :

EDNetEventChannelList

EDNET_EVENT_CHANNEL_LIST_REQUEST :

EDNetEvent

EDNET_EVENT_CHANNEL_PROPERTY :

EDNetEventChannelProperty

EDNET_EVENT_CHANNEL_PROPERTY_SET :

EDNetEventChannelProperty

EDNET_EVENT_CHANNEL_PROPERTY_REQUEST :

EDNetEventChannelPropertyRequest

EDNET_EVENT_STREAM_REQUEST :

EDNetEventStreamRequest

EDNET_EVENT_STREAM_REQUEST_REPLY :

EDNetEventStreamRequestReply

EDNET_EVENT_DEVICE_INFO :

EDNetEventDeviceInfo

EDNET_EVENT_DEVICE_CONTROL :

EDNetEventDeviceControl

EDNET_EVENT_DEVICE_EVENT :

EDNetEventDeviceEvent

EDNET_EVENT_PHONE :

EDNetEventPhone

EDNET_EVENT_DIR_REQUEST :

EDNetEventDirRequest

EDNET_EVENT_DIR_REPLY :

EDNetEventDirReply

EDNET_EVENT_CONFIG_GET :

EDNetEventConfig

EDNET_EVENT_CONFIG_SET :

EDNetEventConfig

EDNET_EVENT_CONFIG_REPLY :

EDNetEventConfig

EDNET_EVENT_MPEG_FILE_OPEN :

EDNetEventMpegFileOpen

EDNET_EVENT_MPEG_FILE_OPEN_REPLY :

EDNetEventMpegFileOpenReply

EDNET_EVENT_MPEG_FILE_READ :

EDNetEventMpegFileRead

EDNET_EVENT_MPEG_FILE_READ_VIDEO :

EDNetEventMpegFileRead

EDNET_EVENT_MPEG_FILE_READ_REPLY :

EDNetEventMpegFileReadReply

EDNET_EVENT_MPEG_FILE_SEEK :

EDNetEventMpegFileSeek

EDNET_EVENT_MPEG_FILE_SEEK_REPLY :

EDNetEventMpegFileSeekReply

EDNET_EVENT_MPEG_FILE_CLOSE :

EDNetEventMpegFileClose

EDNET_EVENT_MPEG_FILE_CLOSE_REPLY :

EDNetEventMpegFileCloseReply

EDNET_EVENT_FILE_REQUEST :

EDNetEventFileRequest

EDNET_EVENT_FILE_GET :

EDNetEventFileGet

EDNET_EVENT_FILE_REQUEST_CANCEL :

EDNetEventFileRequestCancel

EDNET_EVENT_FRAME_TRANSMIT :

EDNetEventFrame

EDNET_EVENT_SIGNAL :

EDNetEventSignal

EDNET_EVENT_WANTED_FRAME :

EDNetEventWantedFrame

EDNET_EVENT_QUIT :

EDNetEvent

EDNET_EVENT_MAX :

EDNetEvent

typedef struct
{
  const char    *obj_name;
  void         (*finalize) (void *object);
  int            _ref;
  EDNetEventType type;
} EDNetEvent;

The common structure for network events.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

EDNetEventConnect

typedef struct
{
  const char    *obj_name;
  void         (*finalize) (void *object);
  int            _ref;
  EDNetEventType type;
  char          *host;
  int            port;
  char          *user;
  char          *password;
} EDNetEventConnect;

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

char *host :

int port :

char *user :

char *password :

EDNetEventConnectReply

typedef struct
{
  const char            *obj_name;
  void                 (*finalize) (void *object);
  int                    _ref;
  EDNetEventType         type;
  EDNetConnectReplyError error;
} EDNetEventConnectReply;

Describes the result of trying to connect to the remote server.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

EDNetConnectReplyError error :

error status

EDNetEventShutdownReply

typedef struct
{
  const char            *obj_name;
  void                 (*finalize) (void *object);
  int                    _ref;
  EDNetEventType         type;
  EDNetConnectReplyError error;
} EDNetEventShutdownReply;

Describes the result of trying to disconnect from the remote server.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

EDNetConnectReplyError error :

error status

EDNetEventSessionList

typedef struct
{
  const char    *obj_name;
  void         (*finalize) (void *object);
  int            _ref;
  EDNetEventType type;
  int            total;
} EDNetEventSessionList;

Describes the number of client sessions in the remote server.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

int total :

the number of sessions

EDNetEventUserRole

typedef struct
{
  const char    *obj_name;
  void         (*finalize) (void *object);
  int            _ref;
  EDNetEventType type;
  int            uid;
  char           channel_access[ ((256-128)/8)];
  char           channel_streaming[ ((256-128)/8)];
  char           channel_device[ ((256-128)/8)];
  int            system;
} EDNetEventUserRole;

Describes connected account information.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

int uid :

user id

char channel_access[ ((256-128)/8)] :

channel access permission (bitwised)

char channel_streaming[ ((256-128)/8)] :

channel streaming permission (bitwised)

char channel_device[ ((256-128)/8)] :

channel device contol permission (bitwised)

int system :

system permission, see EDNetRoleSystem.

EDNetEventChannelList

typedef struct
{
  const char    *obj_name;
  void         (*finalize) (void *object);
  int            _ref;
  EDNetEventType type;
  int            total;
  int           *channels;
} EDNetEventChannelList;

Describes the list of channels in the remote server.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

int total :

the number of channels

int *channels :

the array of channel numbers

EDNetEventChannelProperty

typedef struct
{
  const char                          *obj_name;
  void                               (*finalize) (void *object);
  int                                  _ref;
  EDNetEventType                       type;
  int                                  channel;
  EDNetPropertyID                      id;
  EDNetPropertyValue                   vtype;
  int                                  val;
  char                                *str;
  union _EDNetEventChannelProperty::@2 value;
} EDNetEventChannelProperty;

Describes the property of the channel.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

int channel :

channel number

EDNetPropertyID id :

property id

EDNetPropertyValue vtype :

property type

int val :

char *str :

union _EDNetEventChannelProperty::@2 value :

property value

EDNetEventChannelPropertyRequest

typedef struct
{
  const char    *obj_name;
  void         (*finalize) (void *object);
  int            _ref;
  EDNetEventType type;
  int            channel;
} EDNetEventChannelPropertyRequest;

Describes the request for channel properties.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

int channel :

channel number

EDNetEventStreamRequest

typedef struct
{
  const char    *obj_name;
  void         (*finalize) (void *object);
  int            _ref;
  EDNetEventType type;
  int            channel;
  int            request;
} EDNetEventStreamRequest;

Describes the request for live streaming.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

int channel :

channel number

int request :

TRUE:start, FALSE:cancel

EDNetEventStreamRequestReply

typedef struct
{
  const char    *obj_name;
  void         (*finalize) (void *object);
  int            _ref;
  EDNetEventType type;
  int            channel;
  int            reply;
} EDNetEventStreamRequestReply;

Describes the response of live streaming requests.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

int channel :

channel number

int reply :

TRUE:started, FALSE:stopped

EDNetEventDeviceInfo

typedef struct
{
  const char            *obj_name;
  void                 (*finalize) (void *object);
  int                    _ref;
  EDNetEventType         type;
  EDNetDeviceID          dev_id;
  int                    dev_no;
  EDNetDeviceInfoCommand cmd;
  int                    cmd_data;
} EDNetEventDeviceInfo;

Describes event device information.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

EDNetDeviceID dev_id :

device type

int dev_no :

device number

EDNetDeviceInfoCommand cmd :

a command

int cmd_data :

data

EDNetEventDeviceControl

typedef struct
{
  const char           *obj_name;
  void                (*finalize) (void *object);
  int                   _ref;
  EDNetEventType        type;
  EDNetDeviceID         dev_id;
  int                   dev_no;
  EDNetDevicePTZCommand ptz;
} EDNetEventDeviceControl;

Describes event device control event.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

EDNetDeviceID dev_id :

device type

int dev_no :

device number

EDNetDevicePTZCommand ptz :

control command

EDNetEventDeviceEvent

typedef struct
{
  const char    *obj_name;
  void         (*finalize) (void *object);
  int            _ref;
  EDNetEventType type;
  EDNetDeviceID  dev_id;
  int            dev_no;
  unsigned int   timestamp;
  char           data[ ((256-128)/8)];
} EDNetEventDeviceEvent;

Generated when some events occurred.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

EDNetDeviceID dev_id :

device type

int dev_no :

device number

unsigned int timestamp :

timestamp

char data[ ((256-128)/8)] :

data

EDNetEventPhone

typedef struct
{
  const char       *obj_name;
  void            (*finalize) (void *object);
  int               _ref;
  EDNetEventType    type;
  EDNetPhoneCommand cmd;
  int               src_channel;
  int               dest_channel;
  int               flags;
} EDNetEventPhone;

Describes the status of bidirectional audio communication.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

EDNetPhoneCommand cmd :

phone command

int src_channel :

local audio channel

int dest_channel :

remote audio channel

int flags :

flags

EDNetEventDirRequest

typedef struct
{
  const char    *obj_name;
  void         (*finalize) (void *object);
  int            _ref;
  EDNetEventType type;
  EDNetDirType   req_type;
  unsigned int   req_id;
  char          *path;
} EDNetEventDirRequest;

Describes the request for directory listing.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

EDNetDirType req_type :

directory type

unsigned int req_id :

request ID

char *path :

EDNetEventDirReply

typedef struct
{
  const char    *obj_name;
  void         (*finalize) (void *object);
  int            _ref;
  EDNetEventType type;
  EDNetDirType   req_type;
  unsigned int   req_id;
  unsigned int   total;
  unsigned int   count;
  char          *names;
} EDNetEventDirReply;

Describes the respone of directory listing requests.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

EDNetDirType req_type :

directory type

unsigned int req_id :

request ID

unsigned int total :

the number of entries

unsigned int count :

the number of entries in this event

char **names :

the array of entry names

EDNetEventConfig

typedef struct
{
  const char    *obj_name;
  void         (*finalize) (void *object);
  int            _ref;
  EDNetEventType type;
  char          *section;
  char          *key;
  char          *value;
} EDNetEventConfig;

Describes the configuration request or response.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

char *section :

section name

char *key :

key name

char *value :

value

EDNetEventMpegFileOpen

typedef struct
{
  const char    *obj_name;
  void         (*finalize) (void *object);
  int            _ref;
  EDNetEventType type;
  unsigned int   req_id;
  unsigned int   file_id;
  char          *name;
} EDNetEventMpegFileOpen;

Describes the request for opening the recorded file.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

unsigned int req_id :

request id

unsigned int file_id :

file id

char *name :

file name (full path)

EDNetEventMpegFileOpenReply

typedef struct
{
  const char            *obj_name;
  void                 (*finalize) (void *object);
  int                    _ref;
  EDNetEventType         type;
  unsigned int           req_id;
  unsigned int           file_id;
  EDNetMpegFileOpenError error;
  unsigned int           vtotal;
  unsigned int           width;
  unsigned int           height;
  unsigned int           frame_interval;
  unsigned int           channels;
  unsigned int           sample_rate;
  unsigned short         video_codec_type;
  unsigned short         audio_codec_type;
} EDNetEventMpegFileOpenReply;

Describes the response of the recorded file opening request.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

unsigned int req_id :

request id

unsigned int file_id :

file id

EDNetMpegFileOpenError error :

error status, 0 on success

unsigned int vtotal :

the number of video frames

unsigned int width :

the width of video

unsigned int height :

the height of video

unsigned int frame_interval :

frame interval

unsigned int channels :

the number of audio channels (1:mono, 2:stereo)

unsigned int sample_rate :

audio sample rate

unsigned short video_codec_type :

video codec

unsigned short audio_codec_type :

audio codec

EDNetEventMpegFileRead

typedef struct
{
  const char           *obj_name;
  void                (*finalize) (void *object);
  int                   _ref;
  EDNetEventType        type;
  unsigned int          req_id;
  unsigned int          file_id;
  EDNetMpegFileReadType read_type;
} EDNetEventMpegFileRead;

Describes the request for reading recorded mpeg file.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

unsigned int req_id :

request id

unsigned int file_id :

file id

EDNetMpegFileReadType read_type :

reading method

EDNetEventMpegFileReadReply

typedef struct
{
  const char             *obj_name;
  void                  (*finalize) (void *object);
  int                     _ref;
  EDNetEventType          type;
  unsigned int            req_id;
  EDNetMpegFileReadFormat format;
  EDNetMpegFileReadFlag   flag;
  unsigned int            index;
  unsigned int            total;
  unsigned int            offset;
  unsigned int            frame_data_len;
  char                   *frame_data;
} EDNetEventMpegFileReadReply;

Describes the response of reading mpeg file requests.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

unsigned int req_id :

request id

EDNetMpegFileReadFormat format :

frame format

EDNetMpegFileReadFlag flag :

status flags

unsigned int index :

frame index

unsigned int total :

the length of the frame

unsigned int offset :

the offset of data in the frame

unsigned int frame_data_len :

the length of data

char *frame_data :

frame data

EDNetEventMpegFileSeek

typedef struct
{
  const char           *obj_name;
  void                (*finalize) (void *object);
  int                   _ref;
  EDNetEventType        type;
  unsigned int          req_id;
  unsigned int          file_id;
  unsigned int          index;
  EDNetMpegFileSeekFlag flag;
} EDNetEventMpegFileSeek;

Describes the request for seeking recorded mpeg file.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

unsigned int req_id :

request id

unsigned int file_id :

file id

unsigned int index :

frame index

EDNetMpegFileSeekFlag flag :

seek method

EDNetEventMpegFileSeekReply

typedef struct
{
  const char            *obj_name;
  void                 (*finalize) (void *object);
  int                    _ref;
  EDNetEventType         type;
  unsigned int           req_id;
  EDNetMpegFileSeekFlag  flag;
  EDNetMpegFileSeekError error;
  unsigned int           index;
} EDNetEventMpegFileSeekReply;

Describes the response of seeking mpeg file requests.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

unsigned int req_id :

request id

EDNetMpegFileSeekFlag flag :

seek method

EDNetMpegFileSeekError error :

error status

unsigned int index :

EDNetEventMpegFileClose

typedef struct
{
  const char    *obj_name;
  void         (*finalize) (void *object);
  int            _ref;
  EDNetEventType type;
  unsigned int   req_id;
  unsigned int   file_id;
} EDNetEventMpegFileClose;

Describes the request for closing recorded mpeg file.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

unsigned int req_id :

request id

unsigned int file_id :

file id

EDNetEventMpegFileCloseReply

typedef struct
{
  const char             *obj_name;
  void                  (*finalize) (void *object);
  int                     _ref;
  EDNetEventType          type;
  unsigned int            req_id;
  EDNetMpegFileCloseError error;
} EDNetEventMpegFileCloseReply;

Describes the response of closing mpeg file requests.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

unsigned int req_id :

request id

EDNetMpegFileCloseError error :

status

EDNetEventFileRequest

typedef struct
{
  const char    *obj_name;
  void         (*finalize) (void *object);
  int            _ref;
  EDNetEventType type;
  unsigned int   req_id;
  char          *filename;
} EDNetEventFileRequest;

Describes the request for download files.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

unsigned int req_id :

request id

char *filename :

file name (full path)

EDNetEventFileGet

typedef struct
{
  const char    *obj_name;
  void         (*finalize) (void *object);
  int            _ref;
  EDNetEventType type;
  unsigned int   req_id;
  unsigned int   offset;
  unsigned int   size;
  unsigned int   total;
  unsigned int   len;
  char          *data;
} EDNetEventFileGet;

Describes the response of download files.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

unsigned int req_id :

request id

unsigned int offset :

the offset of data in the file

unsigned int size :

unsigned int total :

the length of the file

unsigned int len :

the length of data

char *data :

file data

EDNetEventFileRequestCancel

typedef struct
{
  const char    *obj_name;
  void         (*finalize) (void *object);
  int            _ref;
  EDNetEventType type;
  unsigned int   req_id;
} EDNetEventFileRequestCancel;

Describes the request for cancel download.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

unsigned int req_id :

request id

EDNetEventFrame

typedef struct
{
  const char    *obj_name;
  void         (*finalize) (void *object);
  int            _ref;
  EDNetEventType type;
  EDNetFrame    *frame;
} EDNetEventFrame;

Describes the request for transferring frames.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

EDNetFrame *frame :

an audio frame

EDNetEventSignal

typedef struct
{
  const char       *obj_name;
  void            (*finalize) (void *object);
  int               _ref;
  EDNetEventType    type;
  int               connect;
  EDNetLinkHookType signal;
  EDNetFunc         func;
  void             *data;
} EDNetEventSignal;

Describes the request for connecting hook signals.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

int connect :

should be connected or disconnected

EDNetLinkHookType signal :

hook type

EDNetFunc func :

hook callback function

void *data :

user data

EDNetEventWantedFrame

typedef struct
{
  const char      *obj_name;
  void           (*finalize) (void *object);
  int              _ref;
  EDNetEventType   type;
  int              add;
  int              channel;
  EDNetFrameFormat fmt;
  int              width;
  int              height;
} EDNetEventWantedFrame;

Describes the request for adding or removing wanted frame formats.

const char *obj_name :

void (*finalize) (void *object) :

int _ref :

EDNetEventType type :

event type

int add :

should be added or removed

int channel :

channel number

EDNetFrameFormat fmt :

the format of frames

int width :

the width of video frames

int height :

the height of video frames

ednet_event_ref ()

void ednet_event_ref   (EDNetEvent *event);

Add a reference to the event object.

event :

a event object

ednet_event_unref ()

void ednet_event_unref (EDNetEvent *event);

Removes a reference from the event object, deallocating the event if no references remain.

event :

a event object