OpenVPN
Macros | Functions
customer_database.c File Reference
#include <stddef.h>
#include <stdio.h>
#include <database.h>
Include dependency graph for customer_database.c:

Go to the source code of this file.

Macros

#define snprintf   _snprintf
 

Functions

DatabaseConnectionconnect_to_customer_database (void)
 
unsigned int get_customer_id_by_name (DatabaseConnection *const connection, const char *const customer_name)
 

Macro Definition Documentation

◆ snprintf

#define snprintf   _snprintf

Definition at line 20 of file customer_database.c.

Referenced by get_customer_id_by_name().

Function Documentation

◆ connect_to_customer_database()

DatabaseConnection * connect_to_customer_database ( void  )

Definition at line 29 of file customer_database.c.

References connect_to_database().

Referenced by test_connect_to_customer_database().

◆ get_customer_id_by_name()

unsigned int get_customer_id_by_name ( DatabaseConnection *const  connection,
const char *const  customer_name 
)

Definition at line 35 of file customer_database.c.

References DatabaseConnection::query_database, and snprintf.

Referenced by test_get_customer_id_by_name().