Mercurial > gftp.yaz
diff lib/gftp.h @ 988:63555c9744c2
remote charset should be specified by each bookmark entry.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Fri, 14 Aug 2009 07:54:55 +0900 |
parents | a490d94a5b8e |
children | c99b134c6185 |
line wrap: on
line diff
--- a/lib/gftp.h Wed Apr 08 11:07:35 2009 +0000 +++ b/lib/gftp.h Fri Aug 14 07:54:55 2009 +0900 @@ -92,9 +92,9 @@ #include <openssl/x509v3.h> #endif +#include <locale.h> #ifdef ENABLE_NLS #include <libintl.h> -#include <locale.h> #define _(String) gettext (String) #else #define _(String) String @@ -312,6 +312,7 @@ #define GFTP_CVARS_FLAGS_DYNMEM (1 << 1) #define GFTP_CVARS_FLAGS_DYNLISTMEM (1 << 2) #define GFTP_CVARS_FLAGS_SHOW_BOOKMARK (1 << 3) +#define GFTP_CVARS_FLAGS_SHOW_BOOKMARK_ONLY (1 << 4) typedef struct gftp_config_vars_tag { @@ -500,6 +501,7 @@ iconv_to_initialized : 1; char *iconv_charset; #endif + char *remote_charset; }; @@ -595,10 +597,11 @@ isfolder : 1, /* If this is set, then the children field can be non-NULL */ save_password : 1; /* Save this password */ + char *remote_charset; gftp_bookmarks_var *children, /* The children of this node. */ *prev, /* The parent of this node */ *next; /* The next sibling of this node */ - gpointer cnode; + gpointer cnode; gftp_config_vars * local_options_vars; int num_local_options_vars; @@ -684,6 +687,14 @@ const char *str, size_t *dest_len ); +/*@null@*/ char * gftp_remote_filename_to_utf8 ( gftp_request * request, + const char *str, + size_t *dest_len ); + +/*@null@*/ char * gftp_remote_filename_from_utf8 ( gftp_request * request, + const char *str, + size_t *dest_len ); + /* config_file.c */ int gftp_config_parse_args ( char *str, int numargs, @@ -958,6 +969,9 @@ void gftp_set_hostname ( gftp_request * request, const char *hostname ); +void gftp_set_remote_charset (gftp_request * request, + const char *remote_charset); + void gftp_set_username ( gftp_request * request, const char *username );