[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[myserver-commit] [SCM] GNU MyServer branch, master, updated. 0_9-371-gb
From: |
Giuseppe Scrivano |
Subject: |
[myserver-commit] [SCM] GNU MyServer branch, master, updated. 0_9-371-gb3af1c9 |
Date: |
Sat, 07 Nov 2009 00:36:58 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU MyServer".
The branch, master has been updated
via b3af1c9fcee65903a7e9fda30b3c9aad9c6f2611 (commit)
from ad39c98edc29a37a2e51a0199f817d336ad56fe6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b3af1c9fcee65903a7e9fda30b3c9aad9c6f2611
Author: Giuseppe Scrivano <address@hidden>
Date: Sat Nov 7 01:29:39 2009 +0100
Use an enum to define the control protocol codes.
diff --git a/myserver/include/protocol/control/control_errors.h
b/myserver/include/protocol/control/control_errors.h
index 626f6f6..322bbf0 100644
--- a/myserver/include/protocol/control/control_errors.h
+++ b/myserver/include/protocol/control/control_errors.h
@@ -26,34 +26,37 @@
* Use these definitions instead of hardly-code the value.
*/
- /*! The request was accepted and served. */
-# define CONTROL_OK 100
+enum
+ {
+ /*! The request was accepted and served. */
+ CONTROL_OK = 100,
- /*! A generic error was encountered. */
-# define CONTROL_ERROR 200
+ /*! A generic error was encountered. */
+ CONTROL_ERROR = 200,
- /*! An internal server error happened. */
-# define CONTROL_INTERNAL 201
+ /*! An internal server error happened. */
+ CONTROL_INTERNAL = 201,
- /*! The Authorization was not accepted. */
-# define CONTROL_AUTH 202
+ /*! The Authorization was not accepted. */
+ CONTROL_AUTH = 202,
- /*! A malformed request was sent. */
-# define CONTROL_MALFORMED 203
+ /*! A malformed request was sent. */
+ CONTROL_MALFORMED = 203,
- /*! A bad command was specified. */
-# define CONTROL_CMD_NOT_FOUND 204
+ /*! A bad command was specified. */
+ CONTROL_CMD_NOT_FOUND = 204,
- /*! A bad length field was specified. */
-# define CONTROL_BAD_LEN 205
+ /*! A bad length field was specified. */
+ CONTROL_BAD_LEN = 205,
- /*! The server is too busy to handle the request. */
-# define CONTROL_SERVER_BUSY 206
+ /*! The server is too busy to handle the request. */
+ CONTROL_SERVER_BUSY = 206,
- /*! The client uses a version of this protocol that we cannot understand. */
-# define CONTROL_BAD_VERSION 207
+ /*! The client uses a version of this protocol that we cannot understand.
*/
+ CONTROL_BAD_VERSION = 207,
- /*! The requested file doesn't exist on the local FS. */
-# define CONTROL_FILE_NOT_FOUND 208
+ /*! The requested file doesn't exist on the local FS. */
+ CONTROL_FILE_NOT_FOUND = 208
+ };
#endif
-----------------------------------------------------------------------
Summary of changes:
myserver/include/protocol/control/control_errors.h | 43 ++++++++++---------
1 files changed, 23 insertions(+), 20 deletions(-)
hooks/post-receive
--
GNU MyServer
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [myserver-commit] [SCM] GNU MyServer branch, master, updated. 0_9-371-gb3af1c9,
Giuseppe Scrivano <=