GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
gnc-uri-utils.h File Reference

Utility functions for convert uri in separate components and back. More...

Go to the source code of this file.

Macros

#define GNC_DATAFILE_EXT   ".gnucash"
 
#define GNC_LOGFILE_EXT   ".log"
 

Functions

void gnc_uri_get_components (const gchar *uri, gchar **protocol, gchar **hostname, gint32 *port, gchar **username, gchar **password, gchar **path)
 
gchar * gnc_uri_get_protocol (const gchar *uri)
 
gchar * gnc_uri_get_path (const gchar *uri)
 
gchar * gnc_uri_create_uri (const gchar *protocol, const gchar *hostname, gint32 port, const gchar *username, const gchar *password, const gchar *path)
 
gchar * gnc_uri_normalize_uri (const gchar *uri, gboolean allow_password)
 
gboolean gnc_uri_is_known_protocol (const gchar *protocol)
 
gboolean gnc_uri_is_file_protocol (const gchar *protocol)
 
gboolean gnc_uri_is_file_uri (const gchar *uri)
 
gchar * gnc_uri_add_extension (const gchar *uri, const gchar *extension)
 

Detailed Description

Utility functions for convert uri in separate components and back.

Author
Copyright (C) 2010 Geert Janssens janss.nosp@m.ens-.nosp@m.geert.nosp@m.@tel.nosp@m.enet..nosp@m.be

These functions help you convert a uri into its separate components (being protocol, host name, port, user name, password and path) or to compose a uri from these separate components.

Definition in file gnc-uri-utils.h.