This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/myddas/myddas_util.h

46 lines
1.7 KiB
C
Raw Normal View History

2015-11-05 17:06:15 +00:00
#include "myddas_structs.h"
2016-01-03 02:06:09 +00:00
void myddas_util_error_message(char *message, Int line, char *file);
2015-11-05 17:06:15 +00:00
2016-01-03 02:06:09 +00:00
UInt myddas_util_get_total_multi_queries_number(MYDDAS_UTIL_CONNECTION con);
2015-11-05 17:06:15 +00:00
2016-01-03 02:06:09 +00:00
void myddas_util_set_total_multi_queries_number(MYDDAS_UTIL_CONNECTION con,
UInt number);
2015-11-05 17:06:15 +00:00
2016-01-03 02:06:09 +00:00
//void myddas_util_table_write(MYSQL_RES *res_set);
2015-11-05 17:06:15 +00:00
void *myddas_util_get_pred_next(void *pointer);
MyddasInt myddas_util_get_pred_arity(void *pointer);
const char *myddas_util_get_pred_name(void *pointer);
2016-01-03 02:06:09 +00:00
void myddas_util_delete_predicate(MYDDAS_UTIL_PREDICATE to_delete);
2015-11-05 17:06:15 +00:00
const char *myddas_util_get_pred_module(void *pointer);
void *myddas_util_get_list_pred(MYDDAS_UTIL_CONNECTION node);
void myddas_util_delete_predicate_list(MYDDAS_UTIL_PREDICATE preds_list);
2016-01-03 02:06:09 +00:00
MYDDAS_UTIL_CONNECTION myddas_util_search_connection(void *con);
MYDDAS_UTIL_PREDICATE myddas_util_find_predicate(const char *pred_name,
Int pred_arity,
const char *pred_module,
MYDDAS_UTIL_PREDICATE list);
MYDDAS_UTIL_CONNECTION myddas_util_add_connection(void *conn, void *enviromment,
MYDDAS_API api);
void myddas_util_delete_connection(void *conn);
MYDDAS_UTIL_PREDICATE
myddas_init_initialize_predicate(const char *pred_name, int pred_arity,
const char *pred_module,
MYDDAS_UTIL_PREDICATE next);
MYDDAS_UTIL_CONNECTION
myddas_init_initialize_connection(void *conn, void *enviromment, MYDDAS_API api,
MYDDAS_UTIL_CONNECTION next);