Skip to content

Commit

Permalink
Driver name as const strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane Gouache committed Apr 19, 2024
1 parent 5cafb4c commit 1467e70
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/gcsplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
#define str(s) #s
#define VERSION str(0.1.0)

const char* driver_name = "GCS driver";
const char* driver_scheme = "gs";

int bIsConnected = false;
google::cloud::storage::Client client;
// Global bucket name
Expand Down Expand Up @@ -112,7 +115,7 @@ std::string GetEnvironmentVariableOrDefault(const std::string& variable_name,

const char *driver_getDriverName()
{
return "GCS driver";
return driver_name;
}

const char *driver_getVersion()
Expand All @@ -122,7 +125,7 @@ const char *driver_getVersion()

const char *driver_getScheme()
{
return "gs";
return driver_scheme;
}

int driver_isReadOnly()
Expand Down

0 comments on commit 1467e70

Please sign in to comment.