asarray.h
资源名称:NETVIDEO.rar [点击查看]
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:1k
源码类别:
流媒体/Mpeg4/MP4
开发平台:
Visual C++
- /*
- * FILE: asarray.h
- * AUTHORS: Orion Hodson
- *
- * Associative array for strings. Perloined from RAT settings code.
- *
- * Copyright (c) 1999-2000 University College London
- * All rights reserved.
- *
- * $Id: asarray.h,v 1.2 2001/10/03 23:40:29 wmay Exp $
- */
- #ifndef __AS_ARRAY_H
- #define __AS_ARRAY_H
- typedef struct _asarray asarray;
- #if defined(__cplusplus)
- extern "C" {
- #endif
- /* Associative array for strings only. Makes own internal copies of
- * keys and values.
- *
- * Functions that return use TRUE for success and FALSE for failure.
- * Double pointers in arguments are filled in by the function being
- * called.
- */
- int32_t asarray_create (asarray **ppa);
- void asarray_destroy (asarray **ppa);
- int32_t asarray_add (asarray *pa, const char *key, const char *value);
- void asarray_remove (asarray *pa, const char *key);
- int32_t asarray_lookup (asarray *pa, const char *key, char **value);
- /* asarray_get_key - gets key corresponding to index'th entry in
- * internal representation, has not relation to order <key,value>
- * tuples added in. This function exists to provide easy way to drain
- * array one item at a time.
- */
- const char* asarray_get_key_no(asarray *pa, int32_t index);
- #if defined(__cplusplus)
- }
- #endif
- #endif /* __AS_ARRAY_H */