| 317 | } |
| 318 | |
| 319 | int |
| 320 | cib_op_can_run(int call_type, int call_options, gboolean privileged, gboolean global_update) |
| 321 | { |
| 322 | if (privileged == FALSE && cib_server_ops[call_type].needs_privileges) { |
| 323 | /* abort */ |
| 324 | return -EACCES; |
| 325 | } |
| 326 | #if 0 |
| 327 | if (rc == pcmk_ok |
| 328 | && stand_alone == FALSE |
| 329 | && global_update == FALSE |
| 330 | && (call_options & cib_quorum_override) == 0 && cib_server_ops[call_type].needs_quorum) { |
| 331 | return -pcmk_err_no_quorum; |
| 332 | } |
| 333 | #endif |
| 334 | return pcmk_ok; |
| 335 | } |
| 336 | |
| 337 | int |
| 338 | cib_op_prepare(int call_type, xmlNode * request, xmlNode ** input, const char **section) |
no outgoing calls
no test coverage detected