Github user phrocker commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/429#discussion_r229020814
  
    --- Diff: libminifi/src/capi/api.cpp ---
    @@ -400,11 +395,19 @@ processor *add_processor_with_linkage(flow *flow, 
const char *processor_name) {
       return nullptr;
     }
     
    -int add_failure_callback(flow *flow, void (*onerror_callback)(const 
flow_file_record*)) {
    +int add_failure_callback(flow *flow, void 
(*onerror_callback)(flow_file_record*)) {
       ExecutionPlan *plan = static_cast<ExecutionPlan*>(flow->plan);
       return plan->setFailureCallback(onerror_callback) ? 0 : 1;
     }
     
    +int set_failure_strategy(flow *flow, int strategy) {
    --- End diff --
    
    Why is strategy not typed to an enumeration? Might change the dynamics of 
the return value but it might make conversions more safe. 


---

Reply via email to