summaryrefslogtreecommitdiff
path: root/src/gmutil.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-08 22:02:14 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-08 22:02:58 +0300
commit496122b446d2084f6117e2b8704d7c9ec6706422 (patch)
treeb379efe7f6a2ed530ec9a9bc982e7f48cbd3a29a /src/gmutil.h
parent7b98d7af353c31706d5d6b20ff7d65272f8b7445 (diff)
Handling "about:home"; GmRequest decoupling
GmRequest is given a pointer to the GmCerts to use. Also, timeouts are handled via a posted command so they get processed in the main thread.
Diffstat (limited to 'src/gmutil.h')
-rw-r--r--src/gmutil.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gmutil.h b/src/gmutil.h
index d0ed4581..8dda84d0 100644
--- a/src/gmutil.h
+++ b/src/gmutil.h
@@ -3,7 +3,8 @@
3#include <the_Foundation/range.h> 3#include <the_Foundation/range.h>
4#include <the_Foundation/string.h> 4#include <the_Foundation/string.h>
5 5
6iDeclareType(GmError) iDeclareType(Url) 6iDeclareType(GmError)
7iDeclareType(Url)
7 8
8/* Response status codes. */ 9/* Response status codes. */
9enum iGmStatusCode { 10enum iGmStatusCode {
@@ -14,6 +15,7 @@ enum iGmStatusCode {
14 unsupportedMimeType_GmStatusCode, 15 unsupportedMimeType_GmStatusCode,
15 failedToOpenFile_GmStatusCode, 16 failedToOpenFile_GmStatusCode,
16 unknownStatusCode_GmStatusCode, 17 unknownStatusCode_GmStatusCode,
18 invalidLocalResource_GmStatusCode,
17 none_GmStatusCode = 0, 19 none_GmStatusCode = 0,
18 /* general status code categories */ 20 /* general status code categories */
19 categoryInput_GmStatusCode = 1, 21 categoryInput_GmStatusCode = 1,
@@ -70,4 +72,5 @@ void init_Url (iUrl *, const iString *text);
70 72
71iRangecc urlHost_String (const iString *); 73iRangecc urlHost_String (const iString *);
72const iString * absoluteUrl_String (const iString *, const iString *urlMaybeRelative); 74const iString * absoluteUrl_String (const iString *, const iString *urlMaybeRelative);
75iString * makeFileUrl_String (const iString *localFilePath);
73void urlEncodeSpaces_String (iString *); 76void urlEncodeSpaces_String (iString *);