~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Open Mash Cross Reference
mash/atobj/atobj-pkt.h

Component: ~ [ mash ] ~ [ apps ] ~ [ gsm ] ~ [ lib ] ~ [ otcl ] ~ [ srm ] ~ [ tcl8.3 ] ~ [ tclcl ] ~ [ tk8.3 ] ~ [ tutorials ] ~

  1 /*
  2  * atobj-pkt.h --
  3  *
  4  *      FIXME: This file needs a description here.
  5  *
  6  * Copyright (c) 1997-2002 The Regents of the University of California.
  7  * All rights reserved.
  8  *
  9  * Redistribution and use in source and binary forms, with or without
 10  * modification, are permitted provided that the following conditions are met:
 11  *
 12  * A. Redistributions of source code must retain the above copyright notice,
 13  *    this list of conditions and the following disclaimer.
 14  * B. Redistributions in binary form must reproduce the above copyright notice,
 15  *    this list of conditions and the following disclaimer in the documentation
 16  *    and/or other materials provided with the distribution.
 17  * C. Neither the names of the copyright holders nor the names of its
 18  *    contributors may be used to endorse or promote products derived from this
 19  *    software without specific prior written permission.
 20  *
 21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
 22  * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 23  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 24  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
 25  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 26  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 27  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 28  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 29  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 30  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 31  * POSSIBILITY OF SUCH DAMAGE.
 32  *
 33  *  $Header: /usr/mash/src/repository/mash/mash-1/atobj/atobj-pkt.h,v 1.8 2002/02/03 03:10:21 lim Exp $
 34  */
 35 
 36 #ifndef ATOBJ_PKT_H
 37 #define ATOBJ_PKT_H
 38 
 39 /* for now, include MB definitions */
 40 /* REVIEW: get rid of this! */
 41 #include "mb/mb.h"
 42 
 43 #ifdef _MSC_VER
 44 #pragma warning( disable : 4200 )
 45 #endif
 46 
 47 typedef u_int32_t AnimationId;
 48 typedef u_int32_t EventId;
 49 
 50 typedef srm_src SrcId;
 51 
 52 struct AtoPkt_event {
 53         AnimationId pe_anmId;
 54         EventId pe_eventId;
 55         u_int32_t pe_strLen;
 56         /* followed by a string of len rounded up by 4 */
 57         char pe_achContent[0];
 58 };
 59 
 60 struct AtoPkt_request {
 61         SrcId pr_srcId;
 62         AnimationId pr_anmId;
 63         u_int32_t pr_strLen;
 64         /* followed by a string of len rounded up by 4 */
 65         char pr_achContent[0];
 66 };
 67 
 68 struct AtoPkt_reply {
 69         SrcId pr_srcId;             /* original source to get stuff from */
 70         AnimationId pr_anmId;
 71         /* all the events should be bunched up into a long string */
 72         u_int32_t pr_strLen;
 73         /* followed by a string of len rounded up by 4 */
 74         char pr_achContent[0];
 75 };
 76 
 77 /* right now we assume there is only one animation per source */
 78 struct AtoPkt_SA {
 79         SrcId sa_srcId;                /* origin of data */
 80         AnimationId sa_anmId;
 81         u_int32_t sa_strLen;
 82         char sa_achSA[0];
 83 };
 84 
 85 
 86 #ifdef _MSC_VER
 87 #pragma warning( default : 4200 )
 88 #endif
 89 
 90 #endif /* #ifdef ATOBJ_PKT_H */
 91 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.