diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2007-11-26 15:26:49 -0500 |
---|---|---|
committer | Eamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil> | 2007-11-26 15:26:49 -0500 |
commit | decd5a7c605e42c99b6a4523c8e1833b859d9b24 (patch) | |
tree | 8b04e41ba529e840dc13f99feffa35a3966f3278 /include/registry.h | |
parent | 9b0e72c8d960d056276f5fa93f3cc2872825711e (diff) |
registry: Rebase registry to use the server config file of protocol names.
Diffstat (limited to 'include/registry.h')
-rw-r--r-- | include/registry.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/include/registry.h b/include/registry.h index d57f32d2d..90c3de367 100644 --- a/include/registry.h +++ b/include/registry.h @@ -15,6 +15,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #ifdef XREGISTRY #include "resource.h" +#include "extnsionst.h" /* Internal string registry - for auditing, debugging, security, etc. */ @@ -22,13 +23,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * Registration functions. The name string is not copied, so it must * not be a stack variable. */ -void RegisterRequestName(unsigned major, unsigned minor, const char *name); -void RegisterEventName(unsigned event, const char *name); -void RegisterErrorName(unsigned error, const char *name); -void RegisterResourceName(RESTYPE type, const char *name); +void RegisterResourceName(RESTYPE type, char *name); +void RegisterExtensionNames(ExtensionEntry *ext); /* - * Lookup functions. The returned string must not be modified. + * Lookup functions. The returned string must not be modified or freed. */ const char *LookupRequestName(int major, int minor); const char *LookupEventName(int event); @@ -49,10 +48,8 @@ void dixResetRegistry(void); /* Define calls away when the registry is not being built. */ -#define RegisterRequestName(a, b, c) { ; } -#define RegisterEventName(a, b) { ; } -#define RegisterErrorName(a, b) { ; } #define RegisterResourceName(a, b) { ; } +#define RegisterExtensionNames(a) { ; } #define LookupRequestName(a, b) XREGISTRY_UNKNOWN #define LookupEventName(a) XREGISTRY_UNKNOWN |