PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ process_single_uri()

static void process_single_uri ( char *  uri)
static

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

1984 {
1985  SHPLOADERCONFIG *loader_file_config;
1986  char *filename = NULL;
1987  char *hostname;
1988  GError *error = NULL;
1989 
1990  if (uri == NULL)
1991  {
1992  pgui_logf(_("Unable to process drag URI."));
1993  return;
1994  }
1995 
1996  filename = g_filename_from_uri(uri, &hostname, &error);
1997  g_free(uri);
1998 
1999  if (filename == NULL)
2000  {
2001  pgui_logf(_("Unable to process filename: %s\n"), error->message);
2002  g_error_free(error);
2003  return;
2004  }
2005 
2006  /* Create a new row in the listview */
2007  loader_file_config = create_new_file_config(filename);
2008  add_loader_file_config_to_list(loader_file_config);
2009 
2010  g_free(filename);
2011  g_free(hostname);
2012 
2013 }
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 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(), and pgui_logf().

Referenced by pgui_action_handle_file_drop().

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