Anope IRC Services  Version 1.8
Functions | Variables
mypasql.c File Reference
#include <winsock.h>
#include <stdio.h>
#include <mysql.h>
Include dependency graph for mypasql.c:

Go to the source code of this file.

Functions

int __stdcall mysql_Connect (char *server, char *user, char *pass)
 
int __stdcall mysql_SelectDb (char *db)
 
const char *__stdcall mysql_Error ()
 
int __stdcall mysql_Query (char *query)
 
int __stdcall mysql_NumRows ()
 
char * strip (char *str)
 
void add_line (char **buf, char *line)
 
int __stdcall mysql_LoadFromFile (char *file)
 
int __stdcall mysql_NumFields ()
 
int __stdcall mysql_FetchRow ()
 
char *__stdcall mysql_FetchField (int i)
 

Variables

MYSQL * mysql
 
MYSQL_RES * result = NULL
 
MYSQL_ROW row
 

Function Documentation

void add_line ( char **  buf,
char *  line 
)

Definition at line 52 of file mypasql.c.

References strdup().

Referenced by mysql_LoadFromFile().

int __stdcall mysql_Connect ( char *  server,
char *  user,
char *  pass 
)

Definition at line 9 of file mypasql.c.

References mysql.

const char* __stdcall mysql_Error ( )

Definition at line 21 of file mypasql.c.

References mysql.

char* __stdcall mysql_FetchField ( int  i)

Definition at line 117 of file mypasql.c.

References result, and row.

int __stdcall mysql_FetchRow ( )

Definition at line 109 of file mypasql.c.

References mysql, result, and row.

int __stdcall mysql_LoadFromFile ( char *  file)

Definition at line 69 of file mypasql.c.

References add_line(), mysql, and strip().

int __stdcall mysql_NumFields ( )

Definition at line 102 of file mypasql.c.

References mysql, and result.

int __stdcall mysql_NumRows ( )

Definition at line 35 of file mypasql.c.

References mysql, and result.

int __stdcall mysql_Query ( char *  query)

Definition at line 26 of file mypasql.c.

References mysql, and result.

int __stdcall mysql_SelectDb ( char *  db)

Definition at line 16 of file mypasql.c.

References mysql.

char* strip ( char *  str)

Definition at line 42 of file mypasql.c.

References c.

Referenced by mysql_LoadFromFile().

Variable Documentation

MYSQL* mysql
MYSQL_RES* result = NULL
MYSQL_ROW row