Browse Source

add signal_incoming_message_t

master
Volker Birk 2 months ago
parent
commit
5b2a028f51
3 changed files with 9 additions and 3 deletions
  1. +2
    -1
      src/trans_auto.c
  2. +2
    -1
      src/trans_auto.h
  3. +5
    -1
      src/transport.h

+ 2
- 1
src/trans_auto.c View File

@ -42,7 +42,8 @@ PEP_STATUS auto_recvnext(PEP_SESSION session, message **msg,
}
PEP_STATUS auto_notify(signal_statuschange_t status_change,
signal_sendto_result_t sendto_result, callback_execution cbe)
signal_sendto_result_t sendto_result,
signal_incoming_message_t incoming, callback_execution cbe)
{
return PEP_STATUS_OK;


+ 2
- 1
src/trans_auto.h View File

@ -25,6 +25,7 @@ PEP_STATUS auto_recvnext(PEP_SESSION session, message **msg,
PEP_transport_status_code *tsc);
PEP_STATUS auto_notify(signal_statuschange_t status_change,
signal_sendto_result_t sendto_result, callback_execution cbe);
signal_sendto_result_t sendto_result,
signal_incoming_message_t incoming, callback_execution cbe);
#endif

+ 5
- 1
src/transport.h View File

@ -71,6 +71,9 @@ typedef PEP_STATUS (*signal_statuschange_t)(PEP_transport_id id,
typedef PEP_STATUS (*signal_sendto_result_t)(PEP_transport_id id, char *message_id,
char *address, PEP_transport_status_code tsc);
typedef PEP_STATUS (*signal_incoming_message_t)(PEP_transport_id id,
PEP_transport_status_code tsc);
// call this to receive signals
typedef enum _callback_execution {
@ -86,7 +89,8 @@ typedef enum _callback_execution {
// provide NULL for callbacks to avoid being called
typedef PEP_STATUS (*notify_transport_t)(signal_statuschange_t status_change,
signal_sendto_result_t sendto_result, callback_execution cbe);
signal_sendto_result_t sendto_result,
signal_incoming_message_t incoming, callback_execution cbe);
/**
* @struct _PEP_transport_t


Loading…
Cancel
Save