libwebsockets
Lightweight C library for HTML5 websockets
lws_netdev_ops Struct Reference

#include <lws-netdev.h>

+ Collaboration diagram for lws_netdev_ops:

Data Fields

struct lws_netdev_instance *(* create )(struct lws_context *ctx, const struct lws_netdev_ops *ops, const char *name, void *platinfo)
 
int(* configure )(struct lws_netdev_instance *nd, lws_netdev_config_t *config)
 
int(* up )(struct lws_netdev_instance *nd)
 
int(* down )(struct lws_netdev_instance *nd)
 
int(* event )(struct lws_netdev_instance *nd, lws_usec_t timestamp, void *buf, size_t len)
 
void(* destroy )(struct lws_netdev_instance **pnd)
 
int(* connect )(struct lws_netdev_instance *wnd, const char *ssid, const char *passphrase, uint8_t *bssid)
 
void(* scan )(struct lws_netdev_instance *nd)
 

Detailed Description

Definition at line 50 of file lws-netdev.h.

Field Documentation

◆ create

struct lws_netdev_instance*(* lws_netdev_ops::create) (struct lws_context *ctx, const struct lws_netdev_ops *ops, const char *name, void *platinfo)

Definition at line 43 of file lws-netdev.h.

◆ configure

int(* lws_netdev_ops::configure) (struct lws_netdev_instance *nd, lws_netdev_config_t *config)

Definition at line 54 of file lws-netdev.h.

◆ up

int(* lws_netdev_ops::up) (struct lws_netdev_instance *nd)

Definition at line 56 of file lws-netdev.h.

◆ down

int(* lws_netdev_ops::down) (struct lws_netdev_instance *nd)

Definition at line 57 of file lws-netdev.h.

◆ event

int(* lws_netdev_ops::event) (struct lws_netdev_instance *nd, lws_usec_t timestamp, void *buf, size_t len)

these are SMD events coming from lws event loop thread context

Definition at line 58 of file lws-netdev.h.

◆ destroy

void(* lws_netdev_ops::destroy) (struct lws_netdev_instance **pnd)

Definition at line 61 of file lws-netdev.h.

◆ connect

int(* lws_netdev_ops::connect) (struct lws_netdev_instance *wnd, const char *ssid, const char *passphrase, uint8_t *bssid)

Definition at line 62 of file lws-netdev.h.

◆ scan

void(* lws_netdev_ops::scan) (struct lws_netdev_instance *nd)

Definition at line 64 of file lws-netdev.h.


The documentation for this struct was generated from the following file: