Previous | Next | Contents | Index |
Allow changing of the MANAGE usage flag for accounts.FORMAT
int POPSTORE_manage (allow) int allow; |
When non-zero, the MANAGE usage flag can be changed. Used for input only.
allow
By default, the popstore API subroutines do not allow manipulation of theMANAGE
usage flag for popstore accounts. Specifically, thePOPSTORE_user_data_set
,POPSTORE_user_update
,POPSTORE_command
, andPOPSTORE_command_d
subroutines will not, by default, allow alterations to be made to that flag for any account. In order to enable the setting or clearing of that flag,POPSTORE_manage
must be called with a non-zero value for theallow
argument. To subsequently disable the ability to set or clear theMANAGE
flag, callPOPSTORE_manage
with a zero value forallow
. Note that even afterPOPSTORE_manage
has been called, a program cannot alter theMANAGE
flag, or any other aspect of a popstore account, unless it has sufficient privileges to read and write profile files. Note thatPOPSTORE_manage
does not return aPOPSTORE_
status code. Instead, it returns a value indicating the state prior to callingPOPSTORE_manage
. If a value of 0 is returned, then previously theMANAGE
flag could not be manipulated. If a value of 1 is returned, then previously theMANAGE
flag could be manipulated. Thus, a subroutine which needs to briefly impose one state or another can make that imposition and then restore the prior state:
/* Change the current state */ old_state = POPSTORE_manage (new_state); ... /* Restore the old state */ (void) POPSTORE_manage (old_state);
0 or 1 The previous state prior to calling POPSTORE_manage.
Previous | Next | Contents | Index |