diff options
author | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-06-17 20:01:20 +0000 |
---|---|---|
committer | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-06-17 20:01:20 +0000 |
commit | 4326076f69474569dc71414a7ad0605e270ecf21 (patch) | |
tree | 7424cfe903e4a80e53ecb116ca75ef5d9a284015 /doc | |
parent | 3ebef6c2292817e1ff009d150af48dd67e5ee3b2 (diff) |
Merged revisions 201453 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r201453 | dvossel | 2009-06-17 15:00:51 -0500 (Wed, 17 Jun 2009) | 3 lines
ast_channel_datastore_alloc is no longer used. updating datastores.txt to reflect that.
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@201454 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'doc')
-rw-r--r-- | doc/datastores.txt | 6 |
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); |