Minor refactor to headers to include missing c-std headers
This commit is contained in:
@@ -2,7 +2,9 @@
|
|||||||
#define H__DB_COLUMN__
|
#define H__DB_COLUMN__
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <stddef.h>
|
||||||
#include <mysql.h>
|
#include <mysql.h>
|
||||||
|
|
||||||
#include "db_connection.h"
|
#include "db_connection.h"
|
||||||
|
|
||||||
enum e_column_type_t {
|
enum e_column_type_t {
|
||||||
@@ -39,7 +41,7 @@ struct column_data_t {
|
|||||||
uint8_t isBlob :1;
|
uint8_t isBlob :1;
|
||||||
uint8_t isTimestamp :1;
|
uint8_t isTimestamp :1;
|
||||||
|
|
||||||
union u_data {
|
union {
|
||||||
void *vptr;
|
void *vptr;
|
||||||
|
|
||||||
int8_t *ptr_int8;
|
int8_t *ptr_int8;
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
#define SQCONN(s) (MYSQL *)s->conn
|
#define SQCONN(s) (MYSQL *)s->conn
|
||||||
|
|
||||||
|
|
||||||
struct stored_conn_t {
|
struct stored_conn_t {
|
||||||
int conn_id;
|
int conn_id;
|
||||||
char *name;
|
char *name;
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
#ifndef H__DB_QUERY__
|
#ifndef H__DB_QUERY__
|
||||||
#define H__DB_QUERY__
|
#define H__DB_QUERY__
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
#include "db_connection.h"
|
#include "db_connection.h"
|
||||||
#include "db_column.h"
|
#include "db_column.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
#ifndef H__DB_VALUE__
|
#ifndef H__DB_VALUE__
|
||||||
#define H__DB_VALUE__
|
#define H__DB_VALUE__
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "db_column.h"
|
#include "db_column.h"
|
||||||
|
|
||||||
char *db_value(char **str, size_t *len, e_column_type type, uint32_t n_args, ...);
|
char *db_value(char **str, size_t *len, e_column_type type, uint32_t n_args, ...);
|
||||||
|
|||||||
@@ -2,8 +2,12 @@
|
|||||||
#define H__DB_WHERE_BUILDER__
|
#define H__DB_WHERE_BUILDER__
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "db_column.h"
|
#include "db_column.h"
|
||||||
|
|
||||||
|
|
||||||
enum e_where_logic_t {
|
enum e_where_logic_t {
|
||||||
UNK,
|
UNK,
|
||||||
CLAUSE,
|
CLAUSE,
|
||||||
|
|||||||
Reference in New Issue
Block a user