Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F4511995
based.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
based.h
View Options
/*
* Copyright 2019 the Pacemaker project contributors
*
* The version control history for this file may have further details.
*
* Licensed under the GNU General Public License version 2 or later (GPLv2+).
*/
#pragma once
#include <stdlib.h> /* size_t */
#include <stdbool.h> /* bool */
#include <crm/common/ipcs.h> /* crm_client_t */
struct module_s;
typedef struct mock_based_context_s {
size_t modules_cnt;
struct module_s** modules;
} mock_based_context_t;
typedef int (*mock_based_argparse_hook)(mock_based_context_t *,
bool, int,
const char *[]);
typedef void (*mock_based_destroy_hook)(struct module_s *);
/* specialized callbacks... */
typedef void (*mock_based_cib_notify_hook)(crm_client_t *);
typedef struct mock_based_hooks_s {
/* generic ones */
mock_based_argparse_hook argparse;
mock_based_destroy_hook destroy;
/* specialized callbacks... */
mock_based_cib_notify_hook cib_notify;
} mock_based_hooks_t;
typedef struct module_s {
char shortopt;
mock_based_hooks_t hooks;
void *priv;
} module_t;
size_t mock_based_register_module(module_t mod);
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Wed, Jun 25, 3:27 AM (1 d, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1952031
Default Alt Text
based.h (1 KB)
Attached To
Mode
rP Pacemaker
Attached
Detach File
Event Timeline
Log In to Comment