Shared store code. More...
Go to the source code of this file.
Macros | |
#define | STORE_BACKEND(name) extern const struct StoreOps store_##name##_ops; |
Functions | |
const char * | store_backend_list (void) |
Get a list of backend names. | |
const struct StoreOps * | store_get_backend_ops (const char *str) |
Get the API functions for an store backend. | |
bool | store_is_valid_backend (const char *str) |
Is the string a valid Store backend. | |
Variables | |
static const struct StoreOps * | StoreOps [] |
Backend implementations. | |
Shared store code.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file store.c.
#define STORE_BACKEND | ( | name | ) | extern const struct StoreOps store_##name##_ops; |
const char * store_backend_list | ( | void | ) |
Get a list of backend names.
ptr | Comma-space-separated list of names |
The caller should free the string.
Definition at line 84 of file store.c.
const struct StoreOps * store_get_backend_ops | ( | const char * | str | ) |
Get the API functions for an store backend.
str | Name of the Store |
ptr | Set of function pointers |
Definition at line 107 of file store.c.
bool store_is_valid_backend | ( | const char * | str | ) |
Is the string a valid Store backend.
str | Store name |
true | s is recognized as a valid backend |
false | otherwise |
Definition at line 129 of file store.c.