41 #define RESULTS_PER_PAGE 100
44 #define GSAD_MESSAGE_INVALID \
45 "<gsad_msg status_text=\"%s\" operation=\"%s\">" \
46 "At least one entered value contains invalid characters or exceeds" \
47 " a size limit. You may use the Back button of your browser to adjust" \
48 " the entered values. If in doubt, the online help of the respective section" \
49 " will lead you to the appropriate help page." \
53 #define GSAD_MESSAGE_INVALID_PARAM(op) \
54 "<gsad_msg status_text=\"Invalid parameter\" operation=\"" op "\">" \
55 "At least one entered value contains invalid characters or exceeds" \
56 " a size limit. You may use the Back button of your browser to adjust" \
57 " the entered values. If in doubt, the online help of the respective section" \
58 " will lead you to the appropriate help page." \
61 #define params_t GHashTable
68 struct timeval cmd_start;
112 gchar *
login_xml (
const gchar *,
const gchar *,
const gchar *,
const gchar *,
113 const gchar *,
const gchar *);
185 #define params_iterator_t GHashTableIter
187 #define params_iterator_init g_hash_table_iter_init
int user_set_autorefresh(const gchar *, const gchar *)
Set default autorefresh interval of user.
void vendor_version_set(const gchar *)
Set the vendor version.
char * capabilities
Capabilites of manager.
int user_set_charts(const gchar *, const int)
Set charts setting of user.
char * timezone
User's timezone.
content_type
Content types.
params_t * params_new()
Make a params.
char * caller
Caller URL, for POST relogin.
void set_chroot_state(int)
Sets the chroot state.
Response information for commands.
int gsad_base_init()
Base init.
int params_given(params_t *, const char *)
Get whether a param was given at all.
char * xsl_transform_with_stylesheet(const char *, const char *, cmd_response_data_t *)
XSL Transformation.
Structure of credential related information.
gboolean params_iterator_next(params_iterator_t *, char **, param_t **)
Increment a params iterator.
char * username
Name of user.
char * ctime_r_strip_newline(time_t *, char *)
Return string from ctime_r with newline replaces with terminator.
char * autorefresh
Auto-refresh interval.
GTree * last_filt_ids
Last filter ids.
char * client_address
Client's address.
int get_chroot_state()
Gets the chroot state.
char * gsad_message(credentials_t *, const char *, const char *, int, const char *, const char *, cmd_response_data_t *)
Handles fatal errors.
param_t * params_get(params_t *, const char *)
Get param.
const gchar * vendor_version_get()
Get the vendor version.
int params_value_size(params_t *, const char *)
Get the size of the value of param.
param_t * params_add(params_t *, const char *, const char *)
Add a param.
int params_valid(params_t *, const char *)
Get whether a param is valid.
params_t * params_values(params_t *, const char *)
Get values of param.
const char * params_filename(params_t *, const char *)
Get filename of param.
int guest
Whether the user is a guest user.
const char * params_original_value(params_t *, const char *)
Get original value of param, before validation.
int gsad_base_cleanup()
Base init.
char * token
Session token.
param_t * params_append_bin(params_t *, const char *, const char *, int, int)
Append binary data to a param.
int charts
Whether to show charts for this user.
const gchar * label_name_get()
Get the login label name.
char * pw_warning
Password policy warning message.
gchar * redirect
HTTP status code.
char * xsl_transform(const char *, cmd_response_data_t *)
XSL Transformation.
GTree * chart_prefs
Chart preferences.
char * severity
Severity class.
char * current_page
Current page URL, for refresh.
char * language
Accept-Language browser header.
gchar * login_xml(const gchar *, const gchar *, const gchar *, const gchar *, const gchar *, const gchar *)
Generate XML for login page.
params_t * params
Request parameters.
#define params_iterator_t
int label_name_set(const gchar *)
Set the login label.
void set_language_code(gchar **, const gchar *)
Set language code of user.
char * password
User's password.
const char * params_value(params_t *, const char *)
Get value of param.
void params_free(params_t *)
Make a params.