@@ -41,7 +41,6 @@ xmlNode *the_cib = NULL;
4141 * \internal
4242 * \brief Process a \c PCMK__CIB_REQUEST_ABS_DELETE
4343 *
44- * \param[in] op Ignored
4544 * \param[in] options Ignored
4645 * \param[in] section Ignored
4746 * \param[in] req Ignored
@@ -54,9 +53,8 @@ xmlNode *the_cib = NULL;
5453 * \note This is unimplemented and simply returns an error.
5554 */
5655int
57- based_process_abs_delete (const char * op , int options , const char * section ,
58- xmlNode * req , xmlNode * input , xmlNode * * cib ,
59- xmlNode * * answer )
56+ based_process_abs_delete (int options , const char * section , xmlNode * req ,
57+ xmlNode * input , xmlNode * * cib , xmlNode * * answer )
6058{
6159 /* @COMPAT Remove when PCMK__CIB_REQUEST_ABS_DELETE is removed. Note that
6260 * external clients with Pacemaker versions < 3.0.0 can send it.
@@ -65,9 +63,8 @@ based_process_abs_delete(const char *op, int options, const char *section,
6563}
6664
6765int
68- based_process_commit_transact (const char * op , int options , const char * section ,
69- xmlNode * req , xmlNode * input , xmlNode * * cib ,
70- xmlNode * * answer )
66+ based_process_commit_transact (int options , const char * section , xmlNode * req ,
67+ xmlNode * input , xmlNode * * cib , xmlNode * * answer )
7168{
7269 /* On success, our caller will activate *cib locally, trigger a replace
7370 * notification if appropriate, and sync *cib to all nodes. On failure, our
@@ -91,28 +88,25 @@ based_process_commit_transact(const char *op, int options, const char *section,
9188}
9289
9390int
94- based_process_is_primary (const char * op , int options , const char * section ,
95- xmlNode * req , xmlNode * input , xmlNode * * cib ,
96- xmlNode * * answer )
91+ based_process_is_primary (int options , const char * section , xmlNode * req ,
92+ xmlNode * input , xmlNode * * cib , xmlNode * * answer )
9793{
9894 // @COMPAT Pacemaker Remote clients <3.0.0 may send this
9995 return (based_is_primary ? pcmk_rc_ok : EPERM );
10096}
10197
10298// @COMPAT: Remove when PCMK__CIB_REQUEST_NOOP is removed
10399int
104- based_process_noop (const char * op , int options , const char * section ,
105- xmlNode * req , xmlNode * input , xmlNode * * cib ,
106- xmlNode * * answer )
100+ based_process_noop (int options , const char * section , xmlNode * req ,
101+ xmlNode * input , xmlNode * * cib , xmlNode * * answer )
107102{
108103 * answer = NULL ;
109104 return pcmk_rc_ok ;
110105}
111106
112107int
113- based_process_ping (const char * op , int options , const char * section ,
114- xmlNode * req , xmlNode * input , xmlNode * * cib ,
115- xmlNode * * answer )
108+ based_process_ping (int options , const char * section , xmlNode * req ,
109+ xmlNode * input , xmlNode * * cib , xmlNode * * answer )
116110{
117111 const char * host = pcmk__xe_get (req , PCMK__XA_SRC );
118112 const char * seq = pcmk__xe_get (req , PCMK__XA_CIB_PING_ID );
@@ -146,9 +140,8 @@ based_process_ping(const char *op, int options, const char *section,
146140}
147141
148142int
149- based_process_primary (const char * op , int options , const char * section ,
150- xmlNode * req , xmlNode * input , xmlNode * * cib ,
151- xmlNode * * answer )
143+ based_process_primary (int options , const char * section , xmlNode * req ,
144+ xmlNode * input , xmlNode * * cib , xmlNode * * answer )
152145{
153146 if (!based_is_primary ) {
154147 pcmk__info ("We are now in R/W mode" );
@@ -162,9 +155,8 @@ based_process_primary(const char *op, int options, const char *section,
162155}
163156
164157int
165- based_process_schemas (const char * op , int options , const char * section ,
166- xmlNode * req , xmlNode * input , xmlNode * * cib ,
167- xmlNode * * answer )
158+ based_process_schemas (int options , const char * section , xmlNode * req ,
159+ xmlNode * input , xmlNode * * cib , xmlNode * * answer )
168160{
169161 xmlNode * wrapper = NULL ;
170162 xmlNode * data = NULL ;
@@ -208,9 +200,8 @@ based_process_schemas(const char *op, int options, const char *section,
208200}
209201
210202int
211- based_process_secondary (const char * op , int options , const char * section ,
212- xmlNode * req , xmlNode * input , xmlNode * * cib ,
213- xmlNode * * answer )
203+ based_process_secondary (int options , const char * section , xmlNode * req ,
204+ xmlNode * input , xmlNode * * cib , xmlNode * * answer )
214205{
215206 if (based_is_primary ) {
216207 pcmk__info ("We are now in R/O mode" );
@@ -224,9 +215,8 @@ based_process_secondary(const char *op, int options, const char *section,
224215}
225216
226217int
227- based_process_shutdown (const char * op , int options , const char * section ,
228- xmlNode * req , xmlNode * input , xmlNode * * cib ,
229- xmlNode * * answer )
218+ based_process_shutdown (int options , const char * section , xmlNode * req ,
219+ xmlNode * input , xmlNode * * cib , xmlNode * * answer )
230220{
231221 const char * host = pcmk__xe_get (req , PCMK__XA_SRC );
232222
@@ -248,17 +238,15 @@ based_process_shutdown(const char *op, int options, const char *section,
248238}
249239
250240int
251- based_process_sync (const char * op , int options , const char * section ,
252- xmlNode * req , xmlNode * input , xmlNode * * cib ,
253- xmlNode * * answer )
241+ based_process_sync (int options , const char * section , xmlNode * req ,
242+ xmlNode * input , xmlNode * * cib , xmlNode * * answer )
254243{
255244 return sync_our_cib (req , true);
256245}
257246
258247int
259- based_process_upgrade (const char * op , int options , const char * section ,
260- xmlNode * req , xmlNode * input , xmlNode * * cib ,
261- xmlNode * * answer )
248+ based_process_upgrade (int options , const char * section , xmlNode * req ,
249+ xmlNode * input , xmlNode * * cib , xmlNode * * answer )
262250{
263251 int rc = pcmk_rc_ok ;
264252
@@ -270,8 +258,7 @@ based_process_upgrade(const char *op, int options, const char *section,
270258 * re-broadcasts the request with PCMK__XA_CIB_SCHEMA_MAX, and each node
271259 * performs the upgrade (and notifies its local clients) here.
272260 */
273- return cib__process_upgrade (op , options , section , req , input , cib ,
274- answer );
261+ return cib__process_upgrade (options , section , req , input , cib , answer );
275262
276263 } else {
277264 xmlNode * scratch = pcmk__xml_copy (NULL , * cib );
0 commit comments