dnp3 (C API) 1.1.0
dnp3_command_task_callback_t Struct Reference

Handler for command tasks. More...

#include <dnp3.h>

Data Fields

void(* on_complete )(dnp3_nothing_t, void *)
 Invoked when the asynchronous operation completes successfully. More...
 
void(* on_failure )(dnp3_command_error_t, void *)
 Invoked when the asynchronous operation fails. More...
 
void(* on_destroy )(void *arg)
 Callback when the underlying owner doesn't need the interface anymore. More...
 
void * ctx
 Context data. More...
 

Detailed Description

Handler for command tasks.

Field Documentation

◆ ctx

void* dnp3_command_task_callback_t::ctx

Context data.

◆ on_complete

void(* dnp3_command_task_callback_t::on_complete) (dnp3_nothing_t, void *)

Invoked when the asynchronous operation completes successfully.

Parameters
resultResult of the command task
ctxContext data

◆ on_destroy

void(* dnp3_command_task_callback_t::on_destroy) (void *arg)

Callback when the underlying owner doesn't need the interface anymore.

Parameters
argContext data

◆ on_failure

void(* dnp3_command_task_callback_t::on_failure) (dnp3_command_error_t, void *)

Invoked when the asynchronous operation fails.

Parameters
errorEnumeration indicating which error occurred
ctxContext data

The documentation for this struct was generated from the following file: