diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-05-06 09:42:48 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-05-06 21:44:35 -0700 |
commit | 80ac8c6d04c04ec1f892883397507f32292ae590 (patch) | |
tree | 4133191d4c63cd27315491b6f82028cf3efca134 /print_shm.c | |
parent | 245871145e6a12739ed8d4512b5e2cb6b1a1721c (diff) | |
download | xscope-80ac8c6d04c04ec1f892883397507f32292ae590.tar.gz |
Ansify prototypes and move extern declarations to header files
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'print_shm.c')
-rw-r--r-- | print_shm.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/print_shm.c b/print_shm.c index e5a5b3e..f100477 100644 --- a/print_shm.c +++ b/print_shm.c @@ -26,6 +26,7 @@ #include "x11.h" #include "shmscope.h" +void MitshmQueryVersion (FD fd, unsigned char *buf) { PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* MitshmRequest */ ; @@ -38,6 +39,7 @@ MitshmQueryVersion (FD fd, unsigned char *buf) printfield(buf, 2, 2, CONST2(2), "request length"); } +void MitshmQueryVersionReply (FD fd, unsigned char *buf) { short n; @@ -56,6 +58,8 @@ MitshmQueryVersionReply (FD fd, unsigned char *buf) PrintField(buf, 14, 2, CARD16, "gid"); PrintField(buf, 16, 1, CARD8, "pxiamp-fromat"); } + +void MitshmAttach (FD fd, unsigned char *buf) { PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* MitshmRequest */ ; @@ -71,6 +75,7 @@ MitshmAttach (FD fd, unsigned char *buf) PrintField(buf, 12, 1, BOOL, "read-only"); } +void MitshmDetach (FD fd, unsigned char *buf) { PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* MitshmRequest */ ; @@ -84,6 +89,7 @@ MitshmDetach (FD fd, unsigned char *buf) PrintField (buf, 4, 4, CARD32, "shmseg"); } +void MitshmPutImage (FD fd, unsigned char *buf) { PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* MitshmRequest */ ; @@ -112,6 +118,7 @@ MitshmPutImage (FD fd, unsigned char *buf) PrintField (buf, 36, 4, CARD32, "offset"); } +void MitshmGetImage (FD fd, unsigned char *buf) { PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* MitshmRequest */ ; @@ -133,6 +140,7 @@ MitshmGetImage (FD fd, unsigned char *buf) PrintField (buf, 28, 4, CARD32, "shmseg"); } +void MitshmGetImageReply (FD fd, unsigned char *buf) { short n; @@ -148,6 +156,7 @@ MitshmGetImageReply (FD fd, unsigned char *buf) PrintField(buf, 8, 4, VISUALID, "visual"); } +void MitshmCreatePixmap (FD fd, unsigned char *buf) { PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* MitshmRequest */ ; @@ -166,6 +175,8 @@ MitshmCreatePixmap (FD fd, unsigned char *buf) PrintField(buf, 20, 4, CARD32, "shmseg"); PrintField(buf, 24, 4, CARD32, "offset"); } -MitshmShmSegError (fd, buf) + +void +MitshmShmSegError (FD fd, unsigned char *buf) { } |