38 #include <curl/curl.h>
48 ast_log(
LOG_ERROR,
"func_curl.so (dependent module) is still loaded. Cannot unload res_curl.so\n");
53 ast_log(
LOG_ERROR,
"res_config_curl.so (dependent module) is still loaded. Cannot unload res_curl.so\n");
57 curl_global_cleanup();
66 if (curl_global_init(CURL_GLOBAL_ALL)) {
67 ast_log(
LOG_ERROR,
"Unable to initialize the CURL library. Cannot load res_curl\n");
Asterisk main include file. File version handling, generic pbx functions.
static int unload_module(void)
#define AST_MODULE_INFO(keystr, flags_to_set, desc, fields...)
int ast_module_check(const char *name)
Check if module with the name given is loaded.
void ast_log(int level, const char *file, int line, const char *function, const char *fmt,...)
Used for sending a log message This is the standard logger function. Probably the only way you will i...
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
static int load_module(void)
#define ASTERISK_FILE_VERSION(file, version)
Register/unregister a source code file with the core.