Classes | Defines | Functions | Variables
wps_ufd.c File Reference
#include "includes.h"
#include "common.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <dirent.h>
#include "wps/wps.h"
#include "wps/wps_i.h"
Include dependency graph for wps_ufd.c:

Go to the source code of this file.

Classes

struct  wps_ufd_data

Defines

#define UFD_DIR1   "%s/SMRTNTKY"
#define UFD_DIR2   UFD_DIR1 "/WFAWSC"
#define UFD_FILE   UFD_DIR2 "/%s"

Functions

static void deinit_ufd (void *priv)
static int dev_pwd_e_file_filter (const struct dirent *entry)
static int get_file_name (struct wps_context *wps, int registrar, const char *path, char *file_name)
static void * init_ufd (struct wps_context *wps, struct oob_device_data *oob_dev, int registrar)
static struct wpabufread_ufd (void *priv)
static int ufd_mkdir (const char *path)
static int wps_get_dev_pwd_e_file_name (char *path, char *file_name)
static int write_ufd (void *priv, struct wpabuf *buf)

Variables

struct oob_device_data oob_ufd_device_data

Define Documentation

#define UFD_DIR1   "%s/SMRTNTKY"

Definition at line 31 of file wps_ufd.c.

#define UFD_DIR2   UFD_DIR1 "/WFAWSC"

Definition at line 32 of file wps_ufd.c.

#define UFD_FILE   UFD_DIR2 "/%s"

Definition at line 33 of file wps_ufd.c.


Function Documentation

static void deinit_ufd ( void *  priv) [static]

Definition at line 220 of file wps_ufd.c.

static int dev_pwd_e_file_filter ( const struct dirent *  entry) [static]

Definition at line 42 of file wps_ufd.c.

static int get_file_name ( struct wps_context wps,
int  registrar,
const char *  path,
char *  file_name 
) [static]

Definition at line 83 of file wps_ufd.c.

static void* init_ufd ( struct wps_context wps,
struct oob_device_data oob_dev,
int  registrar 
) [static]

Definition at line 126 of file wps_ufd.c.

static struct wpabuf* read_ufd ( void *  priv) [static, read]

Definition at line 176 of file wps_ufd.c.

static int ufd_mkdir ( const char *  path) [static]

Definition at line 115 of file wps_ufd.c.

static int wps_get_dev_pwd_e_file_name ( char *  path,
char *  file_name 
) [static]

Definition at line 58 of file wps_ufd.c.

static int write_ufd ( void *  priv,
struct wpabuf buf 
) [static]

Definition at line 207 of file wps_ufd.c.


Variable Documentation

Initial value:
 {
        .device_name    = NULL,
        .device_path    = NULL,
        .init_func      = init_ufd,
        .read_func      = read_ufd,
        .write_func     = write_ufd,
        .deinit_func    = deinit_ufd,
}

Definition at line 228 of file wps_ufd.c.



wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:33:25