-
Notifications
You must be signed in to change notification settings - Fork 358
Reorganize CIB op handler functions and start on based_remote.c #4021
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
c91c23d
Refactor: based: New based_messages.h
nrwahl2 bfc606c
Refactor: libcib: Return void from cib_read_config()
nrwahl2 b36d70b
Refactor: based: Best practices for cib_process_delete_absolute()
nrwahl2 61c4b11
Refactor: based: cib_server_process_diff -> based_process_apply_patch
nrwahl2 9ba8341
Refactor: based: Drop send_sync_request() argument
nrwahl2 095c0ca
Refactor: libcib: cib_process_diff -> cib__process_apply_patch
nrwahl2 1d653fd
Refactor: libcib: cib_process_bump() -> cib__process_bump()
nrwahl2 e480b19
Refactor: based: Rename cib_process_commit_transaction()
nrwahl2 53d38f4
Refactor: libcib: Stop using "cib_" prefix in static cib_file.c funcs
nrwahl2 0941b08
Refactor: libcib: Drop "cib_" from some internal cib_file.c symbols
nrwahl2 24d40bd
Refactor: libcib: Move commit_transact handler above functions table
nrwahl2 8cc43b4
Refactor: libcib: Don't use gboolean in cib_file.c
nrwahl2 619b017
Refactor: libcib: Move some static variable declarations to top of file
nrwahl2 f1890cd
Refactor: libcib: Drop CIB_SERIES_BZIP
nrwahl2 3a971fa
Refactor: libcib: cib_process_create() -> cib__process_create()
nrwahl2 448559d
Refactor: libcib: cib_process_delete() -> cib__process_delete()
nrwahl2 6e2d1b1
Refactor: libcib: Make cib_process_xpath() static
nrwahl2 0bf543e
Doc: various: Update a few copyright dates
nrwahl2 a2fc8d5
Refactor: libcib: cib_process_erase() -> cib__process_erase()
nrwahl2 65d66f5
Refactor: based: New based_process_is_primary()
nrwahl2 1117ed1
Refactor: libcib: cib_process_modify() -> cib__process_modify()
nrwahl2 b35965b
Refactor: based: cib_process_noop() -> based_process_noop()
nrwahl2 9bb0a91
Refactor: based: cib_process_ping() -> based_process_ping()
nrwahl2 e3f1fbb
Refactor: based: New based_process_primary()
nrwahl2 dc448f5
Refactor: libcib: cib_process_query() -> cib__process_query()
nrwahl2 1801167
Refactor: based: cib_process_replace_svr() -> based_process_replace()
nrwahl2 30e0a62
Refactor: based: cib_process_readwrite() -> based_process_secondary()
nrwahl2 0bbd2b5
Refactor: based: cib_process_shutdown_req() -> based_process_shutdown()
nrwahl2 15f0e4a
Refactor: libcib: cib__op_sync_{all,one} -> cib__op_sync_to_{all,one}
nrwahl2 0ea8461
Refactor: based: cib_process_sync() -> based_process_sync_to_all()
nrwahl2 13b023d
Refactor: based: cib_process_sync_one() -> based_process_sync_to_one()
nrwahl2 db3c0a7
Refactor: based: cib_process_upgrade_server() -> based_process_upgrade()
nrwahl2 30bea45
Refactor: based: cib_process_schemas() -> based_process_schemas()
nrwahl2 30457ad
Refactor: libcib: cib_process_replace() -> cib__process_replace()
nrwahl2 be9e788
Refactor: libcib: cib_process_upgrade() -> cib__process_upgrade()
nrwahl2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| /* | ||
| * Copyright 2004-2025 the Pacemaker project contributors | ||
| * | ||
| * The version control history for this file may have further details. | ||
| * | ||
| * This source code is licensed under the GNU Lesser General Public License | ||
| * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY. | ||
| */ | ||
|
|
||
| #ifndef BASED_MESSAGES__H | ||
| #define BASED_MESSAGES__H | ||
|
|
||
| #include <stdbool.h> | ||
|
|
||
| #include <libxml/tree.h> // xmlNode * | ||
|
|
||
| extern bool based_is_primary; | ||
| extern xmlNode *the_cib; | ||
|
|
||
| int based_process_abs_delete(const char *op, int options, const char *section, | ||
| xmlNode *req, xmlNode *input, | ||
| xmlNode *existing_cib, xmlNode **result_cib, | ||
| xmlNode **answer); | ||
|
|
||
| int cib_process_shutdown_req(const char *op, int options, const char *section, | ||
| xmlNode *req, xmlNode *input, | ||
| xmlNode *existing_cib, xmlNode **result_cib, | ||
| xmlNode **answer); | ||
|
|
||
| int cib_process_noop(const char *op, int options, const char *section, | ||
| xmlNode *req, xmlNode *input, xmlNode *existing_cib, | ||
| xmlNode **result_cib, xmlNode **answer); | ||
|
|
||
| int cib_process_ping(const char *op, int options, const char *section, | ||
| xmlNode *req, xmlNode *input, xmlNode *existing_cib, | ||
| xmlNode **result_cib, xmlNode **answer); | ||
|
|
||
| int cib_process_readwrite(const char *op, int options, const char *section, | ||
| xmlNode *req, xmlNode *input, xmlNode *existing_cib, | ||
| xmlNode **result_cib, xmlNode **answer); | ||
|
|
||
| int cib_process_replace_svr(const char *op, int options, const char *section, | ||
| xmlNode *req, xmlNode *input, xmlNode *existing_cib, | ||
| xmlNode **result_cib, xmlNode **answer); | ||
|
|
||
| int cib_server_process_diff(const char *op, int options, const char *section, | ||
| xmlNode *req, xmlNode *input, xmlNode *existing_cib, | ||
| xmlNode **result_cib, xmlNode **answer); | ||
|
|
||
| int cib_process_sync(const char *op, int options, const char *section, | ||
| xmlNode *req, xmlNode *input, xmlNode *existing_cib, | ||
| xmlNode **result_cib, xmlNode **answer); | ||
|
|
||
| int cib_process_sync_one(const char *op, int options, const char *section, | ||
| xmlNode *req, xmlNode *input, xmlNode *existing_cib, | ||
| xmlNode **result_cib, xmlNode **answer); | ||
|
|
||
| int cib_process_upgrade_server(const char *op, int options, const char *section, | ||
| xmlNode *req, xmlNode *input, | ||
| xmlNode *existing_cib, xmlNode **result_cib, | ||
| xmlNode **answer); | ||
|
|
||
| int cib_process_commit_transaction(const char *op, int options, | ||
| const char *section, xmlNode *req, | ||
| xmlNode *input, xmlNode *existing_cib, | ||
| xmlNode **result_cib, xmlNode **answer); | ||
|
|
||
| int cib_process_schemas(const char *op, int options, const char *section, | ||
| xmlNode *req, xmlNode *input, xmlNode *existing_cib, | ||
| xmlNode **result_cib, xmlNode **answer); | ||
|
|
||
| void send_sync_request(const char *host); | ||
| int sync_our_cib(xmlNode *request, bool all); | ||
|
|
||
| #endif // BASED_MESSAGES__H |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ended up not getting around to Doxygen for others yet. Probably at some point.