| Previous | Contents | Index |
Allow changing of the MANAGE usage flag for accounts.
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 theMANAGEusage flag for popstore accounts. Specifically, thePOPSTORE_user_data_set,POPSTORE_user_update,POPSTORE_command, andPOPSTORE_command_dsubroutines 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_managemust be called with a non-zero value for theallowargument. To subsequently disable the ability to set or clear theMANAGEflag, callPOPSTORE_managewith a zero value forallow. Note that even afterPOPSTORE_managehas been called, a program cannot alter theMANAGEflag, or any other aspect of a popstore account, unless it has sufficient privileges to read and write profile files. Note thatPOPSTORE_managedoes 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 theMANAGEflag could not be manipulated. If a value of 1 is returned, then previously theMANAGEflag 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 |