Browse Source

mark base protocol functions

generate_api
Volker Birk 4 years ago
parent
commit
920596a759
4 changed files with 9 additions and 9 deletions
  1. +3
    -3
      src/baseprotocol.c
  2. +4
    -4
      src/baseprotocol.h
  3. +1
    -1
      src/sync_impl.c
  4. +1
    -1
      sync/gen_statemachine.ysl2

+ 3
- 3
src/baseprotocol.c View File

@ -4,7 +4,7 @@
#include "pEp_internal.h"
#include "message_api.h"
PEP_STATUS decorate_message(
PEP_STATUS base_decorate_message(
message *msg,
char *payload,
size_t size
@ -29,7 +29,7 @@ enomem:
return PEP_OUT_OF_MEMORY;
}
PEP_STATUS prepare_message(
PEP_STATUS base_prepare_message(
const pEp_identity *me,
const pEp_identity *partner,
char *payload,
@ -75,7 +75,7 @@ PEP_STATUS prepare_message(
if (!msg->longmsg)
goto enomem;
status = decorate_message(msg, payload, size);
status = base_decorate_message(msg, payload, size);
if (status == PEP_STATUS_OK)
*result = msg;
return status;


+ 4
- 4
src/baseprotocol.h View File

@ -10,7 +10,7 @@ extern "C" {
#endif
// decorate_message() - decorate a message with payload
// base_decorate_message() - decorate a message with payload
//
// parameters:
// msg (inout) message to decorate
@ -24,14 +24,14 @@ extern "C" {
// on success (and only then) payload goes to the ownership of the msg
// the ownership of the msg remains with the caller
PEP_STATUS decorate_message(
PEP_STATUS base_decorate_message(
message *msg,
char *payload,
size_t size
);
// prepare_message() - prepare a sync message with payload
// base_prepare_message() - prepare a sync message with payload
//
// parameters:
// me (in) identity to use for the sender
@ -47,7 +47,7 @@ PEP_STATUS decorate_message(
// on success (and only then) payload goes to the ownership of the result
// the ownership of the result goes to the caller
PEP_STATUS prepare_message(
PEP_STATUS base_prepare_message(
const pEp_identity *me,
const pEp_identity *partner,
char *payload,


+ 1
- 1
src/sync_impl.c View File

@ -161,7 +161,7 @@ PEP_STATUS send_Sync_message(
if (status)
goto the_end;
status = prepare_message(
status = base_prepare_message(
session->sync_state.common.from,
session->sync_state.common.from,
data,


+ 1
- 1
sync/gen_statemachine.ysl2 View File

@ -346,7 +346,7 @@ tstylesheet {
if (status)
goto the_end;
status = prepare_message(
status = base_prepare_message(
session->«yml:lcase(@name)»_state.common.from,
session->«yml:lcase(@name)»_state.common.from,
data,


Loading…
Cancel
Save