mark base protocol functions sync
authorVolker Birk <vb@pep.foundation>
Mon, 13 Aug 2018 20:39:25 +0200
branchsync
changeset 28467444832c5c6e
parent 2845 d474c5ebfec8
child 2847 930626fcac04
mark base protocol functions
src/baseprotocol.c
src/baseprotocol.h
src/sync_impl.c
sync/gen_statemachine.ysl2
     1.1 --- a/src/baseprotocol.c	Mon Aug 13 16:46:26 2018 +0200
     1.2 +++ b/src/baseprotocol.c	Mon Aug 13 20:39:25 2018 +0200
     1.3 @@ -4,7 +4,7 @@
     1.4  #include "pEp_internal.h"
     1.5  #include "message_api.h"
     1.6  
     1.7 -PEP_STATUS decorate_message(
     1.8 +PEP_STATUS base_decorate_message(
     1.9          message *msg,
    1.10          char *payload,
    1.11          size_t size
    1.12 @@ -29,7 +29,7 @@
    1.13      return PEP_OUT_OF_MEMORY;
    1.14  }
    1.15  
    1.16 -PEP_STATUS prepare_message(
    1.17 +PEP_STATUS base_prepare_message(
    1.18          const pEp_identity *me,
    1.19          const pEp_identity *partner,
    1.20          char *payload,
    1.21 @@ -75,7 +75,7 @@
    1.22      if (!msg->longmsg)
    1.23          goto enomem;
    1.24  
    1.25 -    status = decorate_message(msg, payload, size);
    1.26 +    status = base_decorate_message(msg, payload, size);
    1.27      if (status == PEP_STATUS_OK)
    1.28          *result = msg;
    1.29      return status;
     2.1 --- a/src/baseprotocol.h	Mon Aug 13 16:46:26 2018 +0200
     2.2 +++ b/src/baseprotocol.h	Mon Aug 13 20:39:25 2018 +0200
     2.3 @@ -10,7 +10,7 @@
     2.4  #endif
     2.5  
     2.6  
     2.7 -// decorate_message() - decorate a message with payload
     2.8 +// base_decorate_message() - decorate a message with payload
     2.9  //
    2.10  //  parameters:
    2.11  //      msg (inout)     message to decorate
    2.12 @@ -24,14 +24,14 @@
    2.13  //      on success (and only then) payload goes to the ownership of the msg
    2.14  //      the ownership of the msg remains with the caller
    2.15  
    2.16 -PEP_STATUS decorate_message(
    2.17 +PEP_STATUS base_decorate_message(
    2.18          message *msg,
    2.19          char *payload,
    2.20          size_t size
    2.21      );
    2.22  
    2.23  
    2.24 -// prepare_message() - prepare a sync message with payload
    2.25 +// base_prepare_message() - prepare a sync message with payload
    2.26  //
    2.27  //  parameters:
    2.28  //      me (in)         identity to use for the sender
    2.29 @@ -47,7 +47,7 @@
    2.30  //      on success (and only then) payload goes to the ownership of the result
    2.31  //      the ownership of the result goes to the caller
    2.32  
    2.33 -PEP_STATUS prepare_message(
    2.34 +PEP_STATUS base_prepare_message(
    2.35          const pEp_identity *me,
    2.36          const pEp_identity *partner,
    2.37          char *payload,
     3.1 --- a/src/sync_impl.c	Mon Aug 13 16:46:26 2018 +0200
     3.2 +++ b/src/sync_impl.c	Mon Aug 13 20:39:25 2018 +0200
     3.3 @@ -161,7 +161,7 @@
     3.4      if (status)
     3.5          goto the_end;
     3.6  
     3.7 -    status = prepare_message(
     3.8 +    status = base_prepare_message(
     3.9              session->sync_state.common.from,
    3.10              session->sync_state.common.from,
    3.11              data,
     4.1 --- a/sync/gen_statemachine.ysl2	Mon Aug 13 16:46:26 2018 +0200
     4.2 +++ b/sync/gen_statemachine.ysl2	Mon Aug 13 20:39:25 2018 +0200
     4.3 @@ -346,7 +346,7 @@
     4.4              if (status)
     4.5                  goto the_end;
     4.6  
     4.7 -            status = prepare_message(
     4.8 +            status = base_prepare_message(
     4.9                      session->«yml:lcase(@name)»_state.common.from,
    4.10                      session->«yml:lcase(@name)»_state.common.from,
    4.11                      data,