summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDavid Vossel <dvossel@digium.com>2009-06-17 20:00:51 +0000
committerDavid Vossel <dvossel@digium.com>2009-06-17 20:00:51 +0000
commit82e4b252303f7922e9a00dd92f677a2ecc241add (patch)
tree19b1e52180e6e6df7df297c9715ffa80a2ceb050 /doc
parentde8fae17d469ec3915e7e97f31b6715a6564330d (diff)
ast_channel_datastore_alloc is no longer used. updating datastores.txt to reflect that.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@201453 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'doc')
-rw-r--r--doc/datastores.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/datastores.txt b/doc/datastores.txt
index 64b5d35cc..c48c07061 100644
--- a/doc/datastores.txt
+++ b/doc/datastores.txt
@@ -19,8 +19,8 @@ This is a needed structure that contains information about a datastore, it's use
* How do you create a data store?
-1. Use ast_channel_datastore_alloc function to return a pre-allocated structure
- Ex: datastore = ast_channel_datastore_alloc(&example_datastore, "uid");
+1. Use ast_datastore_alloc function to return a pre-allocated structure
+ Ex: datastore = ast_datastore_alloc(&example_datastore, "uid");
This function takes two arguments: (datastore info structure, uid)
2. Attach data to pre-allocated structure.
Ex: datastore->data = mysillydata;
@@ -36,7 +36,7 @@ void callback_destroy(void *data)
}
struct ast_datastore *datastore = NULL;
-datastore = ast_channel_datastore_alloc(&example_datastore, NULL);
+datastore = ast_datastore_alloc(&example_datastore, NULL);
datastore->data = mysillydata;
ast_channel_datastore_add(chan, datastore);