Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
teo_auth.c File Reference
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <curl/curl.h>
#include "teo_auth.h"
#include "conf.h"

Functions

teoAuthClassteoAuthInit (ksnHTTPClass *kh)
 Initialize Teonet authenticate module. More...
 
int teoAuthProcessCommand (teoAuthClass *ta, const char *method, const char *url, const char *data, const char *headers, void *nc_p, command_callback callback)
 Store authentication command in list. More...
 
void teoAuthDestroy (teoAuthClass *ta)
 Destroy Teonet authenticate module. More...
 

Function Documentation

void teoAuthDestroy ( teoAuthClass ta)
teoAuthClass* teoAuthInit ( ksnHTTPClass kh)
int teoAuthProcessCommand ( teoAuthClass ta,
const char *  method,
const char *  url,
const char *  data,
const char *  headers,
void *  nc_p,
command_callback  callback 
)

Store authentication command in list.

Parameters
taPointer to teoAuthClass
method
url
data
headers
nc_p
callback
Returns

References teoAuthClass::async_mutex, teoAuthData::callback, teoAuthData::data, teoAuthData::headers, teoAuthClass::list, malloc(), teoAuthData::method, teoAuthData::nc_p, and teoAuthData::url.