#include "core_services.h"
#include "module.h"
#include "settings.h"
#include "service.h"
#include "thread.h"
#include <io.h>
#include <list.h>
#include <type.h>
#include <str.h>
#include <apr_file_io.h>
#include <apr_strings.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
Include dependency graph for core_services.c:
Go to the source code of this file.
static bs_status core_service_admin_shutdown | ( | const bs_service_request * | request, | |
bs_service_response ** | response, | |||
apr_pool_t * | mp | |||
) | [static] |
Definition at line 80 of file core_services.c.
References BS_ERROR, BS_OK, core_service_create_status_response(), bs_part_instance::data, bs_service_request::input, bs_message_instance::parts, runtestsuite::rv, and stop_daemon().
Referenced by core_service_daemon_admin().
Here is the call graph for this function:
static bs_status core_service_composition_service | ( | const bs_service_request * | request, | |
bs_service_response ** | response, | |||
apr_pool_t * | mp | |||
) | [static] |
Handle composition service requests for the core services.
Definition at line 263 of file core_services.c.
References BS_NO_SERVICE.
Referenced by core_service_request_handler().
static bs_service_response* core_service_create_status_response | ( | const bs_service_request * | request, | |
bs_status | status, | |||
apr_pool_t * | mp | |||
) | [static] |
Definition at line 53 of file core_services.c.
References data, new_bs_data_type(), new_bs_message_instance(), new_bs_part_instance(), new_bs_service_response(), bs_service_request::operation, bs_message_instance::parts, bs_service_request::port, bs_service_request::service, and bs_service_request::uuid.
Referenced by core_service_admin_shutdown(), core_service_logging_service(), core_service_module_service_load(), and core_service_module_service_unload().
Here is the call graph for this function:
static bs_status core_service_daemon_admin | ( | const bs_service_request * | request, | |
bs_service_response ** | response, | |||
apr_pool_t * | mp | |||
) | [static] |
Handle core services requests related to the daemon itself, such as shutdown, status and restart.
Definition at line 226 of file core_services.c.
References BS_NOT_IMPLEMENTED, core_service_admin_shutdown(), bs_service_request::operation, and streq().
Referenced by core_service_request_handler().
Here is the call graph for this function:
static bs_status core_service_logging_service | ( | const bs_service_request * | request, | |
bs_service_response ** | response, | |||
apr_pool_t * | mp | |||
) | [static] |
Handle logging service request for the core services.
Definition at line 239 of file core_services.c.
References BS_ERROR, BS_OK, core_service_create_status_response(), bs_part_instance::data, bs_service_request::input, bs_message_instance::num_parts, bs_service_request::operation, bs_message_instance::parts, and streq().
Referenced by core_service_request_handler().
Here is the call graph for this function:
static bs_status core_service_module_service | ( | const bs_service_request * | request, | |
bs_service_response ** | response, | |||
apr_pool_t * | mp | |||
) | [static] |
Definition at line 208 of file core_services.c.
References BS_NO_SERVICE, core_service_module_service_list(), core_service_module_service_load(), core_service_module_service_unload(), bs_service_request::operation, and streq().
Referenced by core_service_request_handler().
Here is the call graph for this function:
static bs_status core_service_module_service_list | ( | const bs_service_request * | request, | |
bs_service_response ** | response, | |||
apr_pool_t * | mp | |||
) | [static] |
Definition at line 100 of file core_services.c.
References BS_NO_SERVICE, BS_OK, get_module_descriptions(), list_index(), list_size(), new_bs_data_type(), new_bs_message_instance(), new_bs_part_instance(), new_bs_service_response(), new_list(), bs_service_request::operation, bs_message_instance::parts, bs_service_request::port, runtestsuite::rv, bs_service_request::service, and bs_service_request::uuid.
Referenced by core_service_module_service().
Here is the call graph for this function:
static bs_status core_service_module_service_load | ( | const bs_service_request * | request, | |
bs_service_response ** | response, | |||
apr_pool_t * | mp | |||
) | [static] |
Definition at line 166 of file core_services.c.
References BS_ERROR, BS_OK, core_service_create_status_response(), bs_part_instance::data, bs_service_request::input, load_module(), bs_message_instance::num_parts, bs_message_instance::parts, and runtestsuite::rv.
Referenced by core_service_module_service().
Here is the call graph for this function:
static bs_status core_service_module_service_unload | ( | const bs_service_request * | request, | |
bs_service_response ** | response, | |||
apr_pool_t * | mp | |||
) | [static] |
Definition at line 187 of file core_services.c.
References BS_ERROR, BS_OK, core_service_create_status_response(), bs_part_instance::data, bs_service_request::input, bs_message_instance::num_parts, bs_message_instance::parts, runtestsuite::rv, and unload_module().
Referenced by core_service_module_service().
Here is the call graph for this function:
bs_status core_service_request_handler | ( | const bs_service_request * | request, | |
bs_service_response ** | response, | |||
void * | extra | |||
) |
Core service handler function. This function is a wrapper over all lower level core services of Bio-SPHERE
request | Request to service | |
repsonse | Pointer to a pointer where to store the result |
Definition at line 272 of file core_services.c.
References BS_ERROR, core_service_composition_service(), core_service_daemon_admin(), core_service_logging_service(), core_service_module_service(), bs_service_request::port, bs_service_request::service, and streq().
Referenced by init_service().
Here is the call graph for this function: