devPrivates rework: Nevermind, can't const due to return value warnings.

This reverts commit 6fd0a0b08d.
This commit is contained in:
Eamon Walsh 2007-08-16 16:10:44 -04:00 committed by Eamon Walsh
parent 6fd0a0b08d
commit 860a09cfb8
2 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ from The Open Group.
#include "extnsionst.h" #include "extnsionst.h"
typedef struct _PrivateDesc { typedef struct _PrivateDesc {
pointer key; DevPrivateKey key;
unsigned size; unsigned size;
CallbackListPtr initfuncs; CallbackListPtr initfuncs;
CallbackListPtr deletefuncs; CallbackListPtr deletefuncs;

View File

@ -19,10 +19,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* STUFF FOR PRIVATES * STUFF FOR PRIVATES
*****************************************************************/ *****************************************************************/
typedef void *const DevPrivateKey; typedef void *DevPrivateKey;
typedef struct _Private { typedef struct _Private {
pointer key; DevPrivateKey key;
pointer value; pointer value;
struct _Private *next; struct _Private *next;
} PrivateRec; } PrivateRec;
@ -111,7 +111,7 @@ dixSetPrivate(PrivateRec **privates, const DevPrivateKey key, pointer val)
* The calldata argument to the callbacks is a PrivateCallbackPtr. * The calldata argument to the callbacks is a PrivateCallbackPtr.
*/ */
typedef struct _PrivateCallback { typedef struct _PrivateCallback {
pointer key; /* key used to set the private */ DevPrivateKey key; /* private registration key */
pointer *value; /* address of private pointer */ pointer *value; /* address of private pointer */
} PrivateCallbackRec; } PrivateCallbackRec;