plugins/include/console.inc
changeset 1795 255de877ac25
parent 1792 52ccf70925ac
child 1852 cfb14481b84d
     1.1 --- a/plugins/include/console.inc	Fri Dec 14 06:42:40 2007 +0000
     1.2 +++ b/plugins/include/console.inc	Fri Dec 14 23:27:34 2007 +0000
     1.3 @@ -718,3 +718,39 @@
     1.4   * @return			True on success, otherwise false.
     1.5   */
     1.6  native bool:SetCommandFlags(const String:name[], flags);
     1.7 +
     1.8 +/**
     1.9 + * Starts a ConCommandBase search, traversing the list of ConVars and 
    1.10 + * ConCommands.  If a Handle is returned, the next entry must be read 
    1.11 + * via FindNextConCommand().  The order of the list is undefined.
    1.12 + *
    1.13 + * @param buffer		Buffer to store entry name.
    1.14 + * @param max_size		Maximum size of the buffer.
    1.15 + * @param isCommand		Variable to store whether the entry is a command. 
    1.16 + *						If it is not a command, it is a ConVar.
    1.17 + * @param flags			Variable to store entry flags.
    1.18 + * @return				On success, a ConCmdIter Handle is returned, which 
    1.19 + *						can be read via FindNextConCommand(), and must be 
    1.20 + *						closed via CloseHandle().  Additionally, the output 
    1.21 + *						parameters will be filled with information of the 
    1.22 + *						first ConCommandBase entry.
    1.23 + *						On failure, INVALID_HANDLE is returned, and the 
    1.24 + *						contents of outputs is undefined.
    1.25 + */
    1.26 +native Handle:FindFirstConCommand(String:buffer[], max_size, &bool:isCommand, &flags=0);
    1.27 +
    1.28 +/**
    1.29 + * Reads the next entry in a ConCommandBase iterator.
    1.30 + *
    1.31 + * @param search		ConCmdIter Handle to search.
    1.32 + * @param buffer		Buffer to store entry name.
    1.33 + * @param max_size		Maximum size of the buffer.
    1.34 + * @param isCommand		Variable to store whether the entry is a command.
    1.35 + *						If it is not a command, it is a ConVar.
    1.36 + * @param flags			Variable to store entry flags.
    1.37 + * @return				On success, the outputs are filled, the iterator is 
    1.38 + *						advanced to the next entry, and true is returned.  
    1.39 + *						If no more entries exist, false is returned, and the 
    1.40 + *						contents of outputs is undefined.
    1.41 + */
    1.42 +native bool:FindNextConCommand(Handle:search, String:buffer[], max_size, &bool:isCommand, &flags=0);