#include "mod_chxj.h"
extern chxjconvrule_entry*
-chxj_apply_convrule(request_rec *r, apr_array_header_t *convrules);
+chxj_apply_convrule(
+ request_rec *r, apr_array_header_t *convrules);
#endif
/*
#define __CHXJ_CALC_ECC_H__
#include "chxj_qr_code.h"
-extern int chxj_calc_ecc(qr_code_t* qrcode,
+extern int
+chxj_calc_ecc(qr_code_t* qrcode,
unsigned char* indata,
unsigned char* dst);
#endif
extern char*
chxj_exchange_chtml20(
request_rec* r,
- device_table* spec,
+ device_table* spec,
const char* src,
apr_size_t srclen,
apr_size_t* dstlen,
extern char*
chxj_exchange_chtml30(
request_rec* r,
- device_table* spec,
+ device_table* spec,
const char* src,
apr_size_t srclen,
apr_size_t* dstlen,
extern cookie_t* chxj_save_cookie(request_rec *r);
extern char* chxj_add_cookie_parameter(request_rec* r, char* value, cookie_t* cookie);
-extern int chxj_cookie_check_host(request_rec* r, char* value);
+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);
extern void chxj_cookie_db_unlock(request_rec* r, apr_file_t* file);
*/
#ifndef __CHXJ_DUMP_H__
#define __CHXJ_DUMP_H__
-extern void chxj_dump_out(const char* title, const char* s, int slen);
+
+extern void
+chxj_dump_out(const char* title, const char* s, int slen);
+
#endif
/* Prototype */
/*----------------------------------------------------------------------------*/
extern char*
-chxj_encoding(request_rec *r, const char* src, apr_size_t* len);
+chxj_encoding(
+ 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
chxjconvrule_entry* entryp,
cookie_t* cookie);
-extern char* qs_out_apr_pstrcat(request_rec* r, char* o, char* s, int* len);
+extern char*
+qs_out_apr_pstrcat(request_rec* r, char* o, char* s, int* len);
extern char* qs_conv_istyle_to_format(request_rec* r, char* is);
#endif
#define __CHXJ_IMG_CONV_H__
#include "mod_chxj.h"
-extern char* chxj_img_conv(request_rec* r, device_table* spec, const char* s);
+extern char*
+chxj_img_conv(request_rec* r, device_table* spec, const char* s);
#endif
#define DEFAULT_IMAGE_CACHE_DIR "/tmp"
-extern int chxj_img_conv_format_handler(request_rec* r);
+extern int
+chxj_img_conv_format_handler(request_rec* r);
char* chxj_exchange_image(request_rec *r, const char** src, apr_size_t* len);
int chxj_trans_name(request_rec *r);
#define __LOAD_DEVICE_DATA_H__
#include "mod_chxj.h"
-void chxj_load_device_data(Doc* doc, apr_pool_t *p, mod_chxj_config* conf);
+extern void chxj_load_device_data(Doc* doc, apr_pool_t *p, mod_chxj_config* conf);
#endif
char* out;
int out_len;
int pre_flag;
- int textarea_flag;
+ int textarea_flag;
device_table* spec;
mod_chxj_config* conf;
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 (strcasecmp(name, "href") == 0) {
char* pstat;
char* key;
char* val;
- char* pair;
+ char* pair;
# endif
#endif
+
char*
chxj_encoding(request_rec *r, const char* src, apr_size_t* len)
{
emoji_t* ee;
request_rec* r;
device_table* spec;
- int len;
+ int len;
spec = hdml->spec;
jhtml->out = apr_pstrcat(r->pool,
jhtml->out,
" bgcolor=\"",
- value,
+ value,
"\"",
NULL);
}