Beispiel #1
0
void notify_svc (svc_t * svc)
{
    notify_1 ();
    for (subscriber_list_iterator it = subscriber_list_begin (RD.subscribers);
         it != 0; subscriber_list_iterator_next (&it))
    {
        if (!it->val->clnt)
            break;

        config_service_installed_1 (svc_to_rpc_svc (svc), it->val->clnt);
    }
}
Beispiel #2
0
rpc_svc_t * svc_list_to_rpc_svc_array (svc_list box)
{
    register unsigned s_index = 0;
    rpc_svc_t * newRpc_svclist;

    if (List_count (box) == 0)
        return 0;

    newRpc_svclist = malloc (List_count (box) * sizeof (rpc_svc_t));

    for (svc_list_iterator it = svc_list_begin (box); it != NULL;
         svc_list_iterator_next (&it))
    {
        newRpc_svclist[s_index++] = svc_to_rpc_svc (it->val);
    }

    return newRpc_svclist;
}
Beispiel #3
0
svc_id_t * s16db_svc_install (CLIENT * clnt, svc_t * svc)
{
    RETURN_OR_FAIL (svc_id_t, svc_install_1 (svc_to_rpc_svc (svc), clnt));
}
Beispiel #4
0
rpc_svc_t * svc_retrieve_by_name_1_svc (char * id, struct svc_req * req)
{
    static rpc_svc_t result;
    result = svc_to_rpc_svc (svc_find_name (RD.services, id));
    return &result;
}
Beispiel #5
0
rpc_svc_t * svc_retrieve_1_svc (svc_id_t id, struct svc_req * req)
{
    static rpc_svc_t result;
    result = svc_to_rpc_svc (svc_find_id (RD.services, id));
    return &result;
}