Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
teo_auth.h File Reference
#include <stdio.h>
#include <pthread.h>
#include <pbl.h>
#include "../teo_web/teo_web.h"

Go to the source code of this file.

Data Structures

struct  teoAuthClass
 File: teo_auth.h Author: Kirill Scherba kiril.nosp@m.l@sc.nosp@m.herba.nosp@m..ru More...
 
struct  teoAuthData
 Teonet authentication request list data structure. More...
 

Typedefs

typedef struct teoAuthClass teoAuthClass
 File: teo_auth.h Author: Kirill Scherba kiril.nosp@m.l@sc.nosp@m.herba.nosp@m..ru More...
 
typedef void(* command_callback )(void *nc_p, char *err, char *result)
 
typedef struct teoAuthData teoAuthData
 Teonet authentication request list data structure. More...
 

Functions

teoAuthClassteoAuthInit (ksnHTTPClass *kh)
 Initialize Teonet authenticate module. More...
 
void teoAuthDestroy (teoAuthClass *ta)
 Destroy 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...
 

Typedef Documentation

typedef void(* command_callback)(void *nc_p, char *err, char *result)
typedef struct teoAuthClass teoAuthClass

File: teo_auth.h Author: Kirill Scherba kiril.nosp@m.l@sc.nosp@m.herba.nosp@m..ru

Module to connect to Authentication server AuthPrototype

Created on December 1, 2015, 1:52 PM Teonet authentication module class structure

typedef struct teoAuthData teoAuthData

Teonet authentication request list data structure.

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.