Skip to content

Commit 415b273

Browse files
committed
Refactor: based: New based_operation.h
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
1 parent 2a8d488 commit 415b273

3 files changed

Lines changed: 19 additions & 1 deletion

File tree

daemons/based/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ halibdir = $(CRM_DAEMON_DIR)
1515
halib_PROGRAMS = pacemaker-based
1616

1717
noinst_HEADERS = based_io.h \
18+
based_operation.h \
1819
based_transaction.h \
1920
pacemaker-based.h
2021

daemons/based/based_operation.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright 2023-2025 the Pacemaker project contributors
3+
*
4+
* The version control history for this file may have further details.
5+
*
6+
* This source code is licensed under the GNU Lesser General Public License
7+
* version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8+
*/
9+
10+
#ifndef BASED_OPERATION__H
11+
#define BASED_OPERATION__H
12+
13+
#include <crm/cib/internal.h> // cib__*
14+
15+
cib__op_fn_t based_get_op_function(const cib__operation_t *operation);
16+
17+
#endif // BASED_OPERATION__H

daemons/based/pacemaker-based.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include <crm/cib/internal.h>
3232

3333
#include "based_io.h"
34+
#include "based_operation.h"
3435
#include "based_transaction.h"
3536

3637
#include <gnutls/gnutls.h>
@@ -118,7 +119,6 @@ int cib_process_schemas(const char *op, int options, const char *section,
118119
void send_sync_request(const char *host);
119120
int sync_our_cib(xmlNode *request, bool all);
120121

121-
cib__op_fn_t based_get_op_function(const cib__operation_t *operation);
122122
void cib_diff_notify(const char *op, int result, const char *call_id,
123123
const char *client_id, const char *client_name,
124124
const char *origin, xmlNode *update, xmlNode *diff);

0 commit comments

Comments
 (0)