[Refdb-cvs] CVS: refdb/src refdbd.c,1.64,1.65 refdbd.h.in,1.4,1.5
Status: Beta
Brought to you by:
mhoenicka
|
From: Markus H. <mho...@us...> - 2004-01-17 23:04:26
|
Update of /cvsroot/refdb/refdb/src
In directory sc8-pr-cvs1:/tmp/cvs-serv24567
Modified Files:
refdbd.c refdbd.h.in
Log Message:
pass encoding to addref(), addnote(), getfoo()
Index: refdbd.c
===================================================================
RCS file: /cvsroot/refdb/refdb/src/refdbd.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -U2 -r1.64 -r1.65
--- refdbd.c 4 Jan 2004 16:00:52 -0000 1.64
+++ refdbd.c 17 Jan 2004 23:04:23 -0000 1.65
@@ -1244,5 +1244,5 @@
/*********************************************** addref ****/
else if (strcmp((ptr_child_clrequest->inargv)[0], "addref") == 0) {
- result = addref(ptr_child_clrequest, set_owner, &addresult, 0, n_keep_id, format_string, &id_sentinel);
+ result = addref(ptr_child_clrequest, set_owner, &addresult, 0, n_keep_id, format_string, &id_sentinel, db_encoding);
/* let the client know what happened */
@@ -1274,5 +1274,5 @@
/*********************************************** updateref ****/
else if (strcmp((ptr_child_clrequest->inargv)[0], "updateref") == 0) {
- result = addref(ptr_child_clrequest, set_owner, &addresult, n_personal, n_keep_id, format_string, &id_sentinel);
+ result = addref(ptr_child_clrequest, set_owner, &addresult, n_personal, n_keep_id, format_string, &id_sentinel, db_encoding);
/* let the client know what happened */
@@ -1452,5 +1452,5 @@
/*********************************************** addnote ****/
else if (strcmp((ptr_child_clrequest->inargv)[0], "addnote") == 0) {
- result = addnote(ptr_child_clrequest, set_owner, &addresult, 0, &id_sentinel);
+ result = addnote(ptr_child_clrequest, set_owner, &addresult, 0, &id_sentinel, db_encoding);
/* let the client know what happened */
@@ -1460,5 +1460,5 @@
/*********************************************** updatenote ****/
else if (strcmp((ptr_child_clrequest->inargv)[0], "updatenote") == 0) {
- result = addnote(ptr_child_clrequest, set_owner, &addresult, 1, &id_sentinel);
+ result = addnote(ptr_child_clrequest, set_owner, &addresult, 1, &id_sentinel, db_encoding);
/* let the client know what happened */
@@ -1526,40 +1526,40 @@
/*********************************************** getau *****/
else if (strcmp((ptr_child_clrequest->inargv)[0], "getau") == 0) {
- getfoo(ptr_child_clrequest, 0, 0);
+ getfoo(ptr_child_clrequest, 0, 0, db_encoding);
}
/*********************************************** geted *****/
else if (strcmp((ptr_child_clrequest->inargv)[0], "geted") == 0) {
- getfoo(ptr_child_clrequest, 6, 0);
+ getfoo(ptr_child_clrequest, 6, 0, db_encoding);
}
/*********************************************** getas *****/
else if (strcmp((ptr_child_clrequest->inargv)[0], "getas") == 0) {
- getfoo(ptr_child_clrequest, 7, 0);
+ getfoo(ptr_child_clrequest, 7, 0, db_encoding);
}
/*********************************************** getkw *****/
else if (strcmp((ptr_child_clrequest->inargv)[0], "getkw") == 0) {
- getfoo(ptr_child_clrequest, 1, 0);
+ getfoo(ptr_child_clrequest, 1, 0, db_encoding);
}
/*********************************************** getjo *****/
else if (strcmp((ptr_child_clrequest->inargv)[0], "getjo") == 0) {
- getfoo(ptr_child_clrequest, 2, n_all);
+ getfoo(ptr_child_clrequest, 2, n_all, db_encoding);
}
/*********************************************** getjf *****/
else if (strcmp((ptr_child_clrequest->inargv)[0], "getjf") == 0) {
- getfoo(ptr_child_clrequest, 3, n_all);
+ getfoo(ptr_child_clrequest, 3, n_all, db_encoding);
}
/*********************************************** getj1 *****/
else if (strcmp((ptr_child_clrequest->inargv)[0], "getj1") == 0) {
- getfoo(ptr_child_clrequest, 4, n_all);
+ getfoo(ptr_child_clrequest, 4, n_all, db_encoding);
}
/*********************************************** getj2 *****/
else if (strcmp((ptr_child_clrequest->inargv)[0], "getj2") == 0) {
- getfoo(ptr_child_clrequest, 5, n_all);
+ getfoo(ptr_child_clrequest, 5, n_all, db_encoding);
}
Index: refdbd.h.in
===================================================================
RCS file: /cvsroot/refdb/refdb/src/refdbd.h.in,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -U2 -r1.4 -r1.5
--- refdbd.h.in 28 Dec 2003 23:42:05 -0000 1.4
+++ refdbd.h.in 17 Jan 2004 23:04:23 -0000 1.5
@@ -106,5 +106,5 @@
void child_confserv(struct CLIENT_REQUEST* ptr_clrequest);
void confserv(char *command, char *server_ip);
-int addref(struct CLIENT_REQUEST* ptr_clrequest, char* set_owner, struct ADDRESULT* ptr_addresult, int replace_ref, int n_keep_id, const char* reftype, Lilid* ptr_sentinel);
+int addref(struct CLIENT_REQUEST* ptr_clrequest, char* set_owner, struct ADDRESULT* ptr_addresult, int replace_ref, int n_keep_id, const char* reftype, Lilid* ptr_sentinel, char* input_encoding);
int deleteref(struct CLIENT_REQUEST* ptr_clrequest, struct DELRESULT* ptr_delresult);
unsigned long long getref(struct CLIENT_REQUEST* ptr_clrequest, struct bibinfo* ptr_biblio_info, int ref_format, int n_privatelist, char *pdfroot, char *cgi_url);
@@ -112,5 +112,5 @@
int adduser(struct CLIENT_REQUEST* ptr_clrequest, char *user_host, char* newuser_passwd, int n_remove);
int addword(struct CLIENT_REQUEST* ptr_clrequest, int n_remove);
-void getfoo(struct CLIENT_REQUEST* ptr_clrequest, int type, int all);
+void getfoo(struct CLIENT_REQUEST* ptr_clrequest, int type, int all, char* input_encoding);
int getbib(struct CLIENT_REQUEST* ptr_clrequest, struct bibinfo* ptr_biblio_info, char *table_name, int n_ref_format, int n_send_stylespec, struct ADDRESULT* ptr_addresult);
char* getid(char* idstring, char** db, int* type);
@@ -122,5 +122,5 @@
int is_refdb_admin(struct CLIENT_REQUEST* ptr_clrequest);
int run_keyword_scan(struct CLIENT_REQUEST* ptr_clrequest, Lilid* ptr_sentinel, int mode);
-int addnote(struct CLIENT_REQUEST* ptr_clrequest, char* set_owner, struct ADDRESULT* ptr_addresult, int replace_note, Lilid* ptr_sentinel);
+int addnote(struct CLIENT_REQUEST* ptr_clrequest, char* set_owner, struct ADDRESULT* ptr_addresult, int replace_note, Lilid* ptr_sentinel, char* input_encoding);
int deletenote(struct CLIENT_REQUEST* ptr_clrequest, struct DELRESULT* ptr_delresult);
unsigned long long getnote(struct CLIENT_REQUEST* ptr_clrequest, struct bibinfo *ptr_biblio_info, int ref_format, int n_privatelist, char *cgi_url);
|