Esempio n. 1
0
gboolean
services_action_cancel(const char *name, const char *action, int interval)
{
    svc_action_t* op = NULL;
    char id[512];

    snprintf(id, sizeof(id), "%s_%s_%d", name, action, interval);

    if (!(op = g_hash_table_lookup(recurring_actions, id))) {
        return FALSE;
    }

    op->opaque->cancel = TRUE;
    mh_debug("Removing %s", op->id);
    if (op->opaque->repeat_timer) {
        g_source_remove(op->opaque->repeat_timer);
    }
    services_action_free(op);

    return TRUE;
}
Esempio n. 2
0
void
MatahariObject::withdraw(qmf::AgentSession& session)
{
    mh_debug("Withdrawing object %s", getAddr().getName().c_str());
    session.delData(getAddr());
}
Esempio n. 3
0
void
MatahariObject::publish(qmf::AgentSession& session)
{
    session.addData(_instance);
    mh_debug("Published object %s", getAddr().getName().c_str());
}