wimax-tools 1.4.4
Data Structures | Defines | Enumerations | Functions

/home/users/builder/rpm/BUILD/wimax-tools-1.4.4/include/wimaxll/cmd.h File Reference

#include <stdlib.h>
#include <string.h>
#include <error.h>
#include <net/if.h>
#include <errno.h>
#include <argp.h>
#include <wimaxll.h>

Go to the source code of this file.

Data Structures

struct  plugin
struct  cmd

Defines

#define PLUGIN(_name, _version, _init, _exit)
#define w_error(fmt...)   w_msg(W_ERROR, __FILE__, __LINE__, "E: " fmt)
 Log a printf-like error message to stderr.
#define w_warn(fmt...)   w_msg(W_WARN, __FILE__, __LINE__, "W: " fmt)
 Log a printf-like warning message to stderr.
#define w_info(fmt...)   w_msg(W_INFO, __FILE__, __LINE__, "I: " fmt)
 Log a printf-like error message to stderr.
#define w_print(fmt...)   w_msg(W_PRINT, __FILE__, __LINE__, fmt)
 Log a printf-like error message to stdout.
#define w_d1(fmt...)   w_msg(W_D1, __FILE__, __LINE__, "D1: " fmt)
 Log a printf-like debug message (level 1)
#define w_d2(fmt...)   w_msg(W_D2, __FILE__, __LINE__, "D2: " fmt)
 Log a printf-like debug message (level 2)
#define w_d3(fmt...)   w_msg(W_D3, __FILE__, __LINE__, "D3: " fmt)
 Log a printf-like debug message (level 3)

Enumerations

enum  {
  W_ERROR, W_WARN, W_INFO, W_PRINT,
  W_D1, W_D2, W_D3
}

Functions

int w_cmd_register (struct cmd *)
void w_cmd_unregister (struct cmd *)
void w_cmd_need_if (struct wimaxll_handle *)
void w_abort (int result, const char *fmt,...) __attribute__((format(printf
void void w_msg (unsigned, const char *, unsigned, const char *fmt,...) __attribute__((format(printf

Define Documentation

#define PLUGIN (   _name,
  _version,
  _init,
  _exit 
)
Value:
struct plugin plugin = {                                \
        .name = _name,                                  \
        .version = _version,                            \
        .init = _init,                                  \
        .exit = _exit,                                  \
};

Enumeration Type Documentation

anonymous enum
Enumerator:
W_ERROR 
W_WARN 
W_INFO 
W_PRINT 
W_D1 
W_D2 
W_D3 

Function Documentation

void w_abort ( int  result,
const char *  fmt,
  ... 
)
void w_cmd_need_if ( struct wimaxll_handle )
int w_cmd_register ( struct cmd )
void w_cmd_unregister ( struct cmd )
void void w_msg ( unsigned  ,
const char *  ,
unsigned  ,
const char *  fmt,
  ... 
)