Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / lib / tt / lib / tttk / tttkmessage.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /*%%  (c) Copyright 1993, 1994 Hewlett-Packard Company                   */
24 /*%%  (c) Copyright 1993, 1994 International Business Machines Corp.     */
25 /*%%  (c) Copyright 1993, 1994 Sun Microsystems, Inc.                    */
26 /*%%  (c) Copyright 1993, 1994 Novell, Inc.                              */
27 /*%%  $XConsortium: tttkmessage.h /main/3 1995/10/23 10:33:31 rswiston $                                                         */
28 /* -*-C++-*-
29  *
30  * @(#)tttkmessage.h    1.3 93/09/07
31  *
32  * Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
33  */
34 #ifndef ttdtmessage_h
35 #define ttdtmessage_h
36
37 #include "tttk/tttk.h"
38
39 typedef Tt_message      (*_TtDtMessageCB)(
40                                 Tt_message      msg,
41                                 Tt_pattern      pat,
42                                 void           *clientCB,
43                                 void           *clientData
44                         );
45
46 Tt_message              _tttk_message_receive(
47                                 const char             *procid
48                         );
49 Tt_status               _tttk_message_reply(
50                                 Tt_message              msg
51                         );
52 Tt_message              _ttDtPMessageCreate(
53                                 Tt_message              context,
54                                 Tt_class                theClass,
55                                 Tt_scope                theScope,
56                                 const char             *handler,
57                                 Tttk_op                 op,
58                                 _TtDtMessageCB          ttDtCb,
59                                 void                   *clientCB,
60                                 void                   *clientData
61                         );
62 char                   *_tttk_message_id(
63                                 Tt_message              msg,
64                                 int                     arg = 0
65                         );
66 int                     _tttk_message_in_final_state(
67                                 Tt_message              msg
68                         );
69 int                     _tttk_message_am_handling(
70                                 Tt_message              msg
71                         );
72 int                     _tttk_message_arg_ival(
73                                 Tt_message              msg,
74                                 unsigned int            n,
75                                 int                     default_val
76                         );
77 char                   *_tttk_message_arg_val(
78                                 Tt_message              msg,
79                                 unsigned int            n,
80                                 const char             *default_val
81                         );
82 int                     _tttk_message_arg_is_set(
83                                 Tt_message              msg,
84                                 unsigned int            n
85                         );
86 Tt_message              _ttTkNoteReplyStatus(
87                                 Tt_message              msg,
88                                 Tt_pattern              ,
89                                 void                   *,
90                                 void                   *clientData
91                         );
92
93 #endif