Functions

db_matrix.h File Reference

Database support for modules. More...

#include "../../lib/srdb1/db.h"
#include "../../str.h"
#include "../../ut.h"
#include <string.h>
Include dependency graph for db_matrix.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions


Detailed Description

Database support functions for modules.

Definition in file db_matrix.h.


Function Documentation

int matrix_db_init ( void   ) 

This should be called from the mod_init function.

Returns:
0 means ok, -1 means an error occured.

Definition at line 57 of file db_matrix.c.

References db_bind_mod(), db_check_table_version(), _str::len, and _str::s.

Here is the call graph for this function:

int matrix_db_open ( void   ) 

This should be called from child_init. An already existing database connection will be closed, and a new one created.

Returns:
0 means ok, -1 means an error occured.

Definition at line 89 of file db_matrix.c.

void matrix_db_vars ( void   ) 

This is necessary because we're using the 'str' type.

Definition at line 105 of file db_matrix.c.

References _str::len, and _str::s.