1.1 --- a/public/IAdminSystem.h Sat Aug 18 17:15:22 2007 +0000
1.2 +++ b/public/IAdminSystem.h Sat Aug 18 19:43:37 2007 +0000
1.3 @@ -35,7 +35,7 @@
1.4 #include <IShareSys.h>
1.5
1.6 #define SMINTERFACE_ADMINSYS_NAME "IAdminSys"
1.7 -#define SMINTERFACE_ADMINSYS_VERSION 2
1.8 +#define SMINTERFACE_ADMINSYS_VERSION 3
1.9
1.10 /**
1.11 * @file IAdminSystem.h
1.12 @@ -626,6 +626,27 @@
1.13 * @return FlagBits value of the flags.
1.14 */
1.15 virtual FlagBits ReadFlagString(const char *flags, const char **end) =0;
1.16 +
1.17 + /**
1.18 + * @brief Returns a "serial number" for an AdminId. If the serial
1.19 + * number has changed for a given AdminId, it means the permissions
1.20 + * have changed.
1.21 + *
1.22 + * @param id AdminId value.
1.23 + * @return Serial number, or 0 on failure.
1.24 + */
1.25 + virtual unsigned int GetAdminSerialChange(AdminId id) =0;
1.26 +
1.27 + /**
1.28 + * @brief Checks whether an admin can use the given command name.
1.29 + *
1.30 + * If the command does not exist, this will return true.
1.31 + *
1.32 + * @param client Client index.
1.33 + * @param cmd Command name.
1.34 + * @return True on success, false on failure.
1.35 + */
1.36 + virtual bool CanAdminUseCommand(int client, const char *cmd) =0;
1.37 };
1.38 }
1.39