File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- Copyright (c) 2003, 2015 , Oracle and/or its affiliates. All rights reserved.
2
+ Copyright (c) 2003, 2016 , Oracle and/or its affiliates. All rights reserved.
3
3
4
4
This program is free software; you can redistribute it and/or modify
5
5
it under the terms of the GNU General Public License as published by
@@ -410,6 +410,11 @@ extern "C" {
410
410
*/
411
411
void ndb_mgm_set_name (NdbMgmHandle handle , const char * name );
412
412
413
+ /** Get the name previously set for the handle
414
+ *
415
+ */
416
+ const char * ndb_mgm_get_name (const NdbMgmHandle handle );
417
+
413
418
/**
414
419
* Set 'ignore_sigpipe' behaviour
415
420
*
Original file line number Diff line number Diff line change @@ -271,6 +271,13 @@ ndb_mgm_set_name(NdbMgmHandle handle, const char *name)
271
271
handle->m_name = strdup (name);
272
272
}
273
273
274
+ extern " C"
275
+ const char *
276
+ ndb_mgm_get_name (const NdbMgmHandle handle)
277
+ {
278
+ return handle->m_name ;
279
+ }
280
+
274
281
extern " C"
275
282
int
276
283
ndb_mgm_set_connectstring (NdbMgmHandle handle, const char * connect_string)
You can’t perform that action at this time.
0 commit comments