src/pEpEngine.h
branchkeysync
changeset 1235 cfc9214a60a5
parent 1234 c03758736a0b
child 1293 4f598c491fdf
     1.1 --- a/src/pEpEngine.h	Fri Sep 30 16:10:26 2016 +0200
     1.2 +++ b/src/pEpEngine.h	Fri Sep 30 17:25:15 2016 +0200
     1.3 @@ -537,7 +537,7 @@
     1.4  //        group_name (in)     new group name
     1.5  //
     1.6  //    return value:
     1.7 -//        PEP_STATUS_OK = 0             encryption and signing succeeded
     1.8 +//        PEP_STATUS_OK = 0             device group was updated
     1.9  //        PEP_CANNOT_SET_PERSON         update failed
    1.10  
    1.11  DYNAMIC_API PEP_STATUS set_device_group(
    1.12 @@ -545,6 +545,24 @@
    1.13          const char *group_name
    1.14      );
    1.15  
    1.16 +// get_device_group() - get own person's device group
    1.17 +//
    1.18 +//    parameters:
    1.19 +//        session (in)        session handle
    1.20 +//        group_name (in)     new group name
    1.21 +//
    1.22 +//    return value:
    1.23 +//        PEP_STATUS_OK = 0             couldn't get device group
    1.24 +//        PEP_RECORD_NOT_FOUND          update failed
    1.25 +//
    1.26 +//    caveat:
    1.27 +//        the ownerships of group_name is going to the caller
    1.28 +
    1.29 +DYNAMIC_API PEP_STATUS get_device_group(
    1.30 +        PEP_SESSION session, 
    1.31 +        char **group_name
    1.32 +    );
    1.33 +
    1.34  // set_identity_flags() - update identity flags on existing identity
    1.35  //
    1.36  //    parameters: