documentation
authorVolker Birk <vb@pep-project.org>
Thu, 19 May 2016 12:26:30 +0200
changeset 667a3615d44326a
parent 666 4bac9007324a
child 668 293e7f009a3d
documentation
src/map_asn1.c
src/map_asn1.h
     1.1 --- a/src/map_asn1.c	Thu May 19 11:52:41 2016 +0200
     1.2 +++ b/src/map_asn1.c	Thu May 19 12:26:30 2016 +0200
     1.3 @@ -1,7 +1,10 @@
     1.4  #include "pEp_internal.h"
     1.5  #include "map_asn1.h"
     1.6  
     1.7 -Identity_t *Identity_from_Struct(const pEp_identity *ident, Identity_t *result)
     1.8 +Identity_t *Identity_from_Struct(
     1.9 +        const pEp_identity *ident,
    1.10 +        Identity_t *result
    1.11 +    )
    1.12  {
    1.13      assert(ident);
    1.14      if (!ident)
    1.15 @@ -116,7 +119,10 @@
    1.16      return NULL;
    1.17  }
    1.18  
    1.19 -KeyList_t *KeyList_from_stringlist(const stringlist_t *list, KeyList_t *result)
    1.20 +KeyList_t *KeyList_from_stringlist(
    1.21 +        const stringlist_t *list,
    1.22 +        KeyList_t *result
    1.23 +    )
    1.24  {
    1.25      assert(list);
    1.26      if (!list)
     2.1 --- a/src/map_asn1.h	Thu May 19 11:52:41 2016 +0200
     2.2 +++ b/src/map_asn1.h	Thu May 19 12:26:30 2016 +0200
     2.3 @@ -9,11 +9,60 @@
     2.4  extern "C" {
     2.5  #endif
     2.6  
     2.7 -Identity_t *Identity_from_Struct(const pEp_identity *ident, Identity_t *result);
     2.8 +
     2.9 +// Identity_from_Struct() - convert pEp_identity into ASN.1 Identity_t
    2.10 +//
    2.11 +//  params:
    2.12 +//      ident (in)          pEp_identity to convert
    2.13 +//      result (inout)      Identity_t to update or NULL to alloc a new one
    2.14 +//
    2.15 +//  return value:
    2.16 +//      pointer to updated or allocated result
    2.17 +
    2.18 +Identity_t *Identity_from_Struct(
    2.19 +        const pEp_identity *ident,
    2.20 +        Identity_t *result
    2.21 +    );
    2.22 +
    2.23 +
    2.24 +// Identity_to_Struct() - convert ASN.1 Identity_t into pEp_identity
    2.25 +//
    2.26 +//  params:
    2.27 +//      ident (in)          Identity_t to convert
    2.28 +//      result (inout)      pEp_identity to update or NULL to alloc a new one
    2.29 +//
    2.30 +//  return value:
    2.31 +//      pointer to updated or allocated result
    2.32 +
    2.33  pEp_identity *Identity_to_Struct(Identity_t *ident, pEp_identity *result);
    2.34 -KeyList_t *KeyList_from_stringlist(const stringlist_t *list, KeyList_t *result);
    2.35 +
    2.36 +
    2.37 +// KeyList_from_stringlist() - convert stringlist_t into ASN.1 KeyList_t
    2.38 +//
    2.39 +//  params:
    2.40 +//      list (in)           stringlist_t to convert
    2.41 +//      result (inout)      KeyList_t to update or NULL to alloc a new one
    2.42 +//
    2.43 +//  return value:
    2.44 +//      pointer to updated or allocated result
    2.45 +
    2.46 +KeyList_t *KeyList_from_stringlist(
    2.47 +        const stringlist_t *list,
    2.48 +        KeyList_t *result
    2.49 +    );
    2.50 +
    2.51 +// KeyList_to_stringlist() - convert ASN.1 KeyList_t to stringlist_t
    2.52 +//
    2.53 +//  params:
    2.54 +//      list (in)           ASN.1 KeyList_t to convert
    2.55 +//      result (inout)      stringlist_t to update or NULL to alloc a new one
    2.56 +//
    2.57 +//  return value:
    2.58 +//      pointer to updated or allocated result
    2.59 +
    2.60  stringlist_t *KeyList_to_stringlist(KeyList_t *list, stringlist_t *result);
    2.61  
    2.62 +
    2.63  #ifdef __cplusplus
    2.64  }
    2.65  #endif