int tpi_sql_register_interface ( char const * interface_name, [in] char const * interface_description, [in] tpi_sql_fn_connect connect_fn, [in] tpi_sql_fn_disconnect disconnect_fn, [in] tpi_sql_fn_query query_fn, [in] tpi_sql_fn_cmd cmd_fn, [in] tpi_sql_fn_commit commit_fn, [in] tpi_sql_fn_rollback rollback_fn, [in] tpi_sql_fn_err err_fn [in] );
/* Retrieve and print the "text" attribute of the "calc" DCO "test". */ tpi_dco_ctx c; char *text; if (tpi_dco_new(&c, "calc", "test") == 0) return 1; /* error */ if (tpi_dco_get_attr(c, "text", &text) == 0) { tpi_dco_delete(c); return 1; /* error */ } print("text is [%s]\n", text); free(text); tpi_dco_delete(c);
int tpi_dco_new ( tpi_dco_ctx * ctx, [out] char const * type, [in] char const * name [in] );
int tpi_dco_delete ( tpi_dco_ctx ctx, [in] );
int tpi_dco_exists ( tpi_dco_ctx ctx [in] );
int tpi_dco_create ( tpi_dco_ctx ctx [in] );
int tpi_dco_has_attr ( tpi_dco_ctx ctx, [in] char const * attr [in] );
int tpi_dco_get_attr ( tpi_dco_ctx ctx, [in] char const * attr_name, [in] char ** attr_value [out] );
int tpi_dco_set_attr ( tpi_dco_ctx ctx, [in] char const * attr_name, [in] char const * new_value [in] );
int tpi_dco_del_attr ( tpi_dco_ctx ctx, [in] char const * attr_name [in] );
char const *tpi_dco_name ( tpi_dco_ctx ctx [in] );
int tpi_dco_find_by_key ( char const * type, [in] char const * pattern, [in] tpi_dco_ctx [out] * [out] * results, int * nmatches [out] );
int tpi_dco_find_by_attr ( char const * type, [in] char const * attr, [in] char const * pattern, [in] tpi_dco_ctx [out] * [out] * results, int *nmatches [out] );
int tpi_get_get_stats ( char const * type, [in] int * nobjs [out] );
char const *tpi_get_get_error ( tpi_dco_ctx ctx [in] );
int tpi_serv_reply_any ( tpi_serv_reply_ctx repl_ctx, [in] char const * message, [in] ... [in] );
int tpi_serv_reply_private ( tpi_serv_repl_ctx repl_ctx, [in] char const * message, [in] ... [in] );
int tpi_serv_send_message ( tpi_serv_ctx ctx, [in] char const * target, [in] char const * message, [in] ... [in] );
char const *tpi_serv_repl_from_nick ( tpi_serv_reply_ctx repl_ctx [in] );
int tpi_serv_repl_new ( tpi_serv_repl_ctx * ctx, [out] tpi_serv_ctx serv_ctx [in] );
int tpi_serv_repl_set_from_nick ( tpi_serv_repl_ctx repl_ctx, [in] char const *nick [in] );
int tpi_serv_repl_set_target ( tpi_serv_repl_ctx repl_ctx, [in] char const * target [in] );
int tpi_serv_repl_set_private ( tpi_serv_repl_ctx repl_ctx, [in] int priv [in] );
int tpi_serv_join_channel ( tpi_serv_ctx ctx, [in] char const * channel [in] );
int tpi_serv_send_raw ( tpi_serv_ctx ctx, [in] char const * text [in] );
int tpi_serv_add_user_to_channel ( tpi_serv_ctx ctx, [in] char const * user, [in] chat const * channel [in] );
int tpi_serv_change_user_nickname ( tpi_serv_ctx ctx, [in] char const * user, [in] chat const * newnick [in] );
int tpi_serv_signoff_user ( tpi_serv_ctx ctx, [in] char const * user [in] );
void tpi_event_install_handler ( char const * event, [in] tpi_event_callback_fn fb [in] );
void tpi_event_raise ( char const *event, [in] char const *data [in] );
int tpi_user_has_priv ( tpi_user_ctx user, [in] char const *priv [in] );
char const * tpi_user_name ( tpi_user_ctx user [in] );
int tpi_user_find ( tpi_user_ctx * user, [out] char const * username [in] );
int tpi_user_find_by_host ( tpi_user_ctx * user, [out] char const * hostname [in] );
int tpi_user_delete ( tpi_user_ctx user [in] );
int tpi_conf_get_list ( char const * value, [in] char [out] * [out] * [out] * result, int * nresults [out] );
int tpi_log_message ( char const *category, [in] char const *severity, [in] char const *message [in] );