Lines Matching defs:user
9 * to the user. Returns the number (position in the list) of
10 * the user selected context.
15 int choice = 0; /* index of the user's choice */
16 char response[10]; /* string to hold the user's response */
34 /* query_user_context - given a list of context, allow the user to choose one. The
40 char response[10]; /* The user's response */
42 the user */
75 /* get_field - given fieldstr - the "name" of a field, query the user
99 /* manual_user_enter_context - provides a way for a user to manually enter a
102 * given the userid, queries the user and places the
103 * context chosen by the user into usercon. Returns 0
106 int manual_user_enter_context(const char *user, char ** newcon)
108 char response[10]; /* Used to get yes or no answers from user */
109 char role[100]; /* The role requested by the user */
111 char type[100]; /* The type requested by the user */
113 char level[100]; /* The level requested by the user */
117 context_t new_context; /* The new context chosen by the user */
118 const char *user_context = NULL; /* String value of the user's context */
124 new_context = context_new("user:role:type:level");
126 new_context = context_new("user:role:type");
139 /* Allow the user to enter each field of the context individually */
140 if (context_user_set(new_context, user)) {