*/
void wprintf(const char *format,...)
{
- struct wcsession *WCC = WC;
+ wcsession *WCC = WC;
va_list arg_ptr;
if (WCC->WBuf == NULL)
*/
void hprintf(const char *format,...)
{
- struct wcsession *WCC = WC;
+ wcsession *WCC = WC;
va_list arg_ptr;
va_start(arg_ptr, format);
* Convenience functions to wrap around asynchronous ajax responses
*/
void begin_ajax_response(void) {
- struct wcsession *WCC = WC;
+ wcsession *WCC = WC;
FlushStrBuf(WCC->HBuf);
output_headers(0, 0, 0, 0, 0, 0);
char c_httpauth_string[SIZ];
char c_httpauth_user[SIZ];
char c_httpauth_pass[SIZ];
- struct wcsession *WCC;
+ wcsession *WCC;
safestrncpy(c_username, "", sizeof c_username);
safestrncpy(c_password, "", sizeof c_password);
int ConditionalImportantMesage(WCTemplateToken *Tokens, void *Context, int ContextType)
{
- struct wcsession *WCC = WC;
+ wcsession *WCC = WC;
if (WCC != NULL)
return (!IsEmptyStr(WCC->ImportantMessage));
else
void tmplput_importantmessage(StrBuf *Target, int nArgs, WCTemplateToken *Tokens, void *Context, int ContextType)
{
- struct wcsession *WCC = WC;
+ wcsession *WCC = WC;
if (WCC != NULL) {
/*
void tmplput_trailing_javascript(StrBuf *Target, int nArgs, WCTemplateToken *Tokens, void *vContext, int ContextType)
{
- struct wcsession *WCC = WC;
+ wcsession *WCC = WC;
if (WCC != NULL)
StrBufAppendTemplate(Target, nArgs, Tokens, vContext, ContextType,
void tmplput_url_part(StrBuf *Target, int nArgs, WCTemplateToken *Tokens, void *Context, int ContextType)
{
StrBuf *UrlBuf;
- struct wcsession *WCC = WC;
+ wcsession *WCC = WC;
if (WCC != NULL) {
if (Tokens->Params[0]->lvalue == 0)