Enumerations | Functions | Variables
utils.h File Reference
#include <regex.h>
#include <stdio.h>
#include <stdarg.h>
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  pu_log_level_t {
  PUL_ERR = 1, PUL_CRIT, PUL_WARN, PUL_INFO,
  PUL_DEBUG, PUL_VERB
}

Functions

int byteArrayToString (unsigned char *bytes, int length, char *string)
int cancelConnect (int cancelSocket)
int escape (const char *src, unsigned int srclen, char **dstp)
int escape2 (const char *src, unsigned int slen, char **dstp, int escbacks)
int getmatchsub (const char *line, char **subp, const regmatch_t pmatch[], int n)
int pasprintf (char **ret, const char *fmt,...)
int pd_getline (char *buf, unsigned int bufsize, int *bufcur, int *buflen, int(*readfunc)(int, void *, unsigned int, char *errdesc, int errlen), int(*closefunc)(int, char *errdesc, int errlen), int readfd, char **line, char *errdesc, int errlen)
int pu_close (int fd, char *errdesc, int edlen)
void pu_log (pu_log_level_t l, int s, const char *fmt,...)
void pu_log_stream (FILE *)
int pu_read (int fd, void *buf, unsigned int len, char *errdesc, int edlen)
int pu_write (int fd, const void *buf, unsigned int len, char *errdesc, int edlen)
int pvasprintf (char **ret, const char *fmt, va_list ap)
int stream_server_accept (int port, void(*clfunc)(int fd, const char *addr, int port), char *errdesc, int errlen)
int CCONV stream_server_connect (const char *dest, const char *svcname, int *fdp, int *cancelSocket, char *errdesc, int errdesclen)
int stringToByteArray (char *string, unsigned char *bytes, int *length)
int stringToWordArray (char *string, int *words, int *length)
int unescape (const char *src, char **dstp, unsigned int *dstlenp)
int wordArrayToString (int *words, int length, char *string)

Variables

int logging_enabled

Enumeration Type Documentation

Enumerator:
PUL_ERR 
PUL_CRIT 
PUL_WARN 
PUL_INFO 
PUL_DEBUG 
PUL_VERB 

Definition at line 7 of file utils.h.


Function Documentation

int byteArrayToString ( unsigned char *  bytes,
int  length,
char *  string 
)

Definition at line 1156 of file utils.c.

int cancelConnect ( int  cancelSocket)

Definition at line 369 of file utils.c.

int escape ( const char *  src,
unsigned int  srclen,
char **  dstp 
)

Definition at line 1151 of file utils.c.

int escape2 ( const char *  src,
unsigned int  slen,
char **  dstp,
int  escbacks 
)

Definition at line 1114 of file utils.c.

int getmatchsub ( const char *  line,
char **  subp,
const regmatch_t  pmatch[],
int  n 
)

Definition at line 279 of file utils.c.

int pasprintf ( char **  ret,
const char *  fmt,
  ... 
)

Definition at line 152 of file utils.c.

int pd_getline ( char *  buf,
unsigned int  bufsize,
int *  bufcur,
int *  buflen,
int(*)(int, void *, unsigned int, char *errdesc, int errlen)  readfunc,
int(*)(int, char *errdesc, int errlen)  closefunc,
int  readfd,
char **  line,
char *  errdesc,
int  errlen 
)
int pu_close ( int  fd,
char *  errdesc,
int  edlen 
)

Definition at line 920 of file utils.c.

void pu_log ( pu_log_level_t  l,
int  s,
const char *  fmt,
  ... 
)

Definition at line 1020 of file utils.c.

void pu_log_stream ( FILE *  )
int pu_read ( int  fd,
void buf,
unsigned int  len,
char *  errdesc,
int  edlen 
)

Definition at line 872 of file utils.c.

int pu_write ( int  fd,
const void buf,
unsigned int  len,
char *  errdesc,
int  edlen 
)

Definition at line 782 of file utils.c.

int pvasprintf ( char **  ret,
const char *  fmt,
va_list  ap 
)

Definition at line 75 of file utils.c.

int stream_server_accept ( int  port,
void(*)(int fd, const char *addr, int port clfunc,
char *  errdesc,
int  errlen 
)

Definition at line 579 of file utils.c.

int CCONV stream_server_connect ( const char *  dest,
const char *  svcname,
int *  fdp,
int *  cancelSocket,
char *  errdesc,
int  errdesclen 
)

Definition at line 389 of file utils.c.

int stringToByteArray ( char *  string,
unsigned char *  bytes,
int *  length 
)

Definition at line 1166 of file utils.c.

int stringToWordArray ( char *  string,
int *  words,
int *  length 
)

Definition at line 1202 of file utils.c.

int unescape ( const char *  src,
char **  dstp,
unsigned int *  dstlenp 
)

Definition at line 1074 of file utils.c.

int wordArrayToString ( int *  words,
int  length,
char *  string 
)

Definition at line 1188 of file utils.c.


Variable Documentation

Definition at line 44 of file utils.c.



pedal_monitor
Author(s): Pedro Mendes
autogenerated on Fri Jun 6 2014 18:37:22