PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ process_single_uri()

static void process_single_uri ( char *  uri)
static

Definition at line 2002 of file shp2pgsql-gui.c.

2003 {
2004  SHPLOADERCONFIG *loader_file_config;
2005  char *filename = NULL;
2006  char *hostname;
2007  GError *error = NULL;
2008 
2009  if (uri == NULL)
2010  {
2011  pgui_logf(_("Unable to process drag URI."));
2012  return;
2013  }
2014 
2015  filename = g_filename_from_uri(uri, &hostname, &error);
2016  g_free(uri);
2017 
2018  if (filename == NULL)
2019  {
2020  pgui_logf(_("Unable to process filename: %s\n"), error->message);
2021  g_error_free(error);
2022  return;
2023  }
2024 
2025  /* Create a new row in the listview */
2026  loader_file_config = create_new_file_config(filename);
2027  if (loader_file_config == NULL) {
2029  g_free(filename);
2030  g_free(hostname);
2031  return;
2032  }
2033  add_loader_file_config_to_list(loader_file_config);
2034 
2035  g_free(filename);
2036  g_free(hostname);
2037 
2038 }
static SHPLOADERCONFIG * create_new_file_config(const char *filename)
static void static void static void pgui_logf(const char *fmt,...) __attribute__((format(printf
static void pgui_raise_error_dialogue(void)
static void add_loader_file_config_to_list(SHPLOADERCONFIG *loader_file_config)
#define _(String)
Definition: shpcommon.h:24

References _, add_loader_file_config_to_list(), create_new_file_config(), pgui_logf(), and pgui_raise_error_dialogue().

Referenced by pgui_action_handle_file_drop().

Here is the call graph for this function:
Here is the caller graph for this function: