plugins/include/keyvalues.inc
changeset 1401 e3b761515c0a
parent 1330 ab94316bb52b
child 1707 05af94444cc8
child 1715 f9ecab642e25
     1.1 --- a/plugins/include/keyvalues.inc	Sun Sep 09 02:29:46 2007 +0000
     1.2 +++ b/plugins/include/keyvalues.inc	Mon Sep 10 18:03:06 2007 +0000
     1.3 @@ -350,3 +350,38 @@
     1.4   * @error				Invalid Handle.
     1.5   */
     1.6  native KvNodesInStack(Handle:kv);
     1.7 +
     1.8 +/**
     1.9 + * Makes a new copy of all subkeys in the origin KeyValues to
    1.10 + * the destination KeyValues.
    1.11 + * NOTE: All KeyValues are processed from the current location not the root one.
    1.12 + *
    1.13 + * @param origin		Origin KeyValues Handle.
    1.14 + * @param dest			Destination KeyValues Handlee.
    1.15 + * @noreturn
    1.16 + * @error				Invalid Handle.
    1.17 + */
    1.18 +native KvCopySubkeys(Handle:origin, Handle:dest);
    1.19 +
    1.20 +/** 
    1.21 + * Finds a KeyValues name by id.
    1.22 + *
    1.23 + * @param kv			KeyValues Handle.
    1.24 + * @param id			KeyValues id.
    1.25 + * @param name			Buffer to store the name.
    1.26 + * @param maxlength		Maximum length of the value buffer.
    1.27 + * @return			True on success, false if id not found.
    1.28 + * @error				Invalid Handle.
    1.29 + */
    1.30 +native bool:KvFindKeyById(Handle:kv, id, String:name[], maxlength);
    1.31 +
    1.32 +/** 
    1.33 + * Finds a KeyValues id inside a KeyValues tree.
    1.34 + *
    1.35 + * @param kv			KeyValues Handle.
    1.36 + * @param key			Key name.
    1.37 + * @param id			Id of the found KeyValue.
    1.38 + * @return			True on success, false if key not found.
    1.39 + * @error				Invalid Handle.
    1.40 + */
    1.41 +native bool:KvGetNameSymbol(Handle:kv, const String:key[], &id);