...
1 // This file is under GNU General Public License 3.0
7 #include "identity_list.h"
8 #include "../asn.1/Identity.h"
9 #include "../asn.1/IdentityList.h"
16 // Identity_from_Struct() - convert pEp_identity into ASN.1 Identity_t
19 // ident (in) pEp_identity to convert
20 // result (inout) Identity_t to update or NULL to alloc a new one
23 // pointer to updated or allocated result
26 // if a new struct is allocated, the ownership goes to the caller
28 Identity_t *Identity_from_Struct(
29 const pEp_identity *ident,
34 // Identity_to_Struct() - convert ASN.1 Identity_t into pEp_identity
37 // ident (in) Identity_t to convert
38 // result (inout) pEp_identity to update or NULL to alloc a new one
41 // pointer to updated or allocated result
44 // if a new struct is allocated, the ownership goes to the caller
46 pEp_identity *Identity_to_Struct(Identity_t *ident, pEp_identity *result);
49 // IdentityList_from_identity_list() - convert identity_list_t into ASN.1 IdentityList_t
52 // list (in) identity_list to convert
53 // result (inout) IdentityList_t to update or NULL to alloc a new one
56 // pointer to updated or allocated result
59 // if a new struct is allocated, the ownership goes to the caller
61 IdentityList_t *IdentityList_from_identity_list(
62 const identity_list *list,
63 IdentityList_t *result
66 // IdentityList_to_identity_list() - convert ASN.1 IdentityList_t to identity_list_t
69 // list (in) ASN.1 IdentityList_t to convert
70 // result (inout) identity_list_t to update or NULL to alloc a new one
73 // pointer to updated or allocated result
76 // if a new struct is allocated, the ownership goes to the caller
78 identity_list *IdentityList_to_identity_list(IdentityList_t *list, identity_list *result);