extern int
chxj_calc_ecc(
- qr_code_t* qrcode,
+ qr_code_t* qrcode,
unsigned char* indata,
unsigned char* dst);
#endif
request_rec *r);
extern char*
-chxj_add_cookie_parameter(request_rec* r, char* value, cookie_t* cookie);
+chxj_add_cookie_parameter(
+ request_rec* r, char* value, cookie_t* cookie);
extern int chxj_cookie_check_host(request_rec* r, char* value);
extern cookie_t* chxj_load_cookie(request_rec* r, char* cookie_id);
extern apr_file_t* chxj_cookie_db_lock(request_rec* r);
chxj_dump_out(
const char* title,
const char* s,
- int slen);
+ int slen);
#endif
/*----------------------------------------------------------------------------*/
extern char*
chxj_encoding(
- request_rec *r,
- const char* src,
- apr_size_t* len);
+ request_rec* r,
+ const char* src,
+ apr_size_t* len);
extern char* chxj_rencoding(request_rec *r, const char* src, apr_size_t* len);
extern char* chxj_encoding_parameter(request_rec* r, const char* value);
#endif
qs_out_apr_pstrcat(
request_rec* r,
char* o,
- char* s, int* len);
+ char* s,
+ int* len);
extern char* qs_conv_istyle_to_format(request_rec* r, char* is);
#endif
extern char*
chxj_img_conv(
request_rec* r,
- device_table* spec, const char* s);
+ device_table* spec,
+ const char* s);
#endif
extern int
chxj_img_conv_format_handler(
request_rec* r);
-extern char* chxj_exchange_image(request_rec *r, const char** src, apr_size_t* len);
+extern char*
+chxj_exchange_image(request_rec *r, const char** src, apr_size_t* len);
int chxj_trans_name(request_rec *r);
extern void
chxj_load_device_data(
- Doc* doc, apr_pool_t *p, mod_chxj_config* conf);
+ Doc* doc,
+ apr_pool_t *p, mod_chxj_config* conf);
#endif
} qr_mode_change_t;
typedef struct _qr_code_t {
- qr_code_found_t found;
+ qr_code_found_t found;
qr_mode_change_t mode_change;
qr_ver_t version;
#include "chxj_cookie.h"
-typedef struct _device_table_t {
+typedef struct device_table_t device_table;
+
+struct device_table_t {
struct _device_table_t* next;
const char* device_id;
const char* device_name;
/*--------------------------------------------------------------------------*/
int color;
char* emoji_type;
-
-
-} device_table;
+};
typedef struct _device_table_list_t {
struct _device_table_list_t* next;
#include <string.h>
-int chxj_chk_numeric(const char* s);
+extern int chxj_chk_numeric(const char* s);
int chxj_atoi(const char* s);
#endif
/*----------------------------------------------------------------------------*/
typedef struct xhtml_t xhtml_t;
struct xhtml_t {
- Doc* doc;
+ Doc* doc;
char* out;
int out_len;
int pre_flag;
if ((*name == 'h' || *name == 'H') && strcasecmp(name, "href") == 0) {
chtml30->out = apr_pstrcat(r->pool,
chtml30->out,
- " href=\"",
+ " href=\"",
value,
"\"",
NULL);
return NULL;
}
+
static char*
s_cut_until_end_hostname(request_rec* r, char* value)
{
iconv_t cd;
size_t result;
- apr_size_t ilen;
+ apr_size_t ilen;
apr_size_t olen;
mod_chxj_config* dconf;
chxjconvrule_entry* entryp;
for (attr = qs_get_attr(doc,node);
attr;
attr = qs_get_next_attr(doc,attr)) {
+
char* name = qs_get_attr_name(doc,attr);
char* value = qs_get_attr_value(doc,attr);
if ((*name == 'n' || *name == 'N') && strcasecmp(name, "name") == 0) {
char*
-chxj_img_conv(request_rec* r, device_table* spec, const char* s)
+chxj_img_conv(
+ request_rec* r, device_table* spec, const char* s)
{
char* dst;
/*----------------------------------------------------------------------------*/
/* Request parameter maintenance structure */
/*----------------------------------------------------------------------------*/
-typedef struct _query_string_param_t {
+typedef struct query_string_param_t query_string_param_t;
+
+struct query_string_param_t {
img_conv_mode_t mode;
char* user_agent;
ua_use_flag_t ua_flag;
long count; /* for EZGET */
int width;
int height;
-} query_string_param_t;
+};
/*----------------------------------------------------------------------------*/
/* Device_spec when User-Agent is disregarded */
/*----------------------------------------------------------------------*/
jhtml->out = apr_pstrcat(r->pool,
jhtml->out,
- " text=\"",
+ " text=\"",
value,
"\"",
NULL);