OFFIS DCMTK  Version 3.6.0
dulpriv.h
1 /*
2  *
3  * Copyright (C) 1994-2010, OFFIS e.V.
4  * All rights reserved. See COPYRIGHT file for details.
5  *
6  * This software and supporting documentation were partly developed by
7  *
8  * OFFIS e.V.
9  * R&D Division Health
10  * Escherweg 2
11  * D-26121 Oldenburg, Germany
12  *
13  * For further copyrights, see the following paragraphs.
14  *
15  */
16 
17 /*
18  Copyright (C) 1993, 1994, RSNA and Washington University
19 
20  The software and supporting documentation for the Radiological
21  Society of North America (RSNA) 1993, 1994 Digital Imaging and
22  Communications in Medicine (DICOM) Demonstration were developed
23  at the
24  Electronic Radiology Laboratory
25  Mallinckrodt Institute of Radiology
26  Washington University School of Medicine
27  510 S. Kingshighway Blvd.
28  St. Louis, MO 63110
29  as part of the 1993, 1994 DICOM Central Test Node project for, and
30  under contract with, the Radiological Society of North America.
31 
32  THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND NEITHER RSNA NOR
33  WASHINGTON UNIVERSITY MAKE ANY WARRANTY ABOUT THE SOFTWARE, ITS
34  PERFORMANCE, ITS MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR
35  USE, FREEDOM FROM ANY COMPUTER DISEASES OR ITS CONFORMITY TO ANY
36  SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND PERFORMANCE OF
37  THE SOFTWARE IS WITH THE USER.
38 
39  Copyright of the software and supporting documentation is
40  jointly owned by RSNA and Washington University, and free access
41  is hereby granted as a license to use this software, copy this
42  software and prepare derivative works based upon this software.
43  However, any distribution of this software source code or
44  supporting documentation or derivative works (source code and
45  supporting documentation) must include the three paragraphs of
46  the copyright notice.
47 */
48 
49 /*
50 ** DICOM 93
51 ** Electronic Radiology Laboratory
52 ** Mallinckrodt Institute of Radiology
53 ** Washington University School of Medicine
54 **
55 ** Module Name(s):
56 ** Author, Date: Stephen M. Moore, xx-May-92
57 ** Intent:
58 ** This header contains private typedefs for the DICOM Upper Layer
59 ** (DUL) protocol package. This is to be used to compile the DUL
60 ** package and is not intended to be seen by the applications programmer.
61 ** Files at the package level should include this file to get the
62 ** proper typedefs and include the public file "dulprotocol.h" to
63 ** get the public definitions and function prototypes. I have omitted
64 ** the public definitions and prototypes on purpose so that they
65 ** exist in only one location.
66 **
67 ** Last Update: $Author: joergr $, $Date: 2010-12-01 08:26:37 $
68 ** Revision: $Revision: 1.11 $
69 ** Status: $State: Exp $
70 */
71 
72 #ifndef DULPRIVATE_H
73 #define DULPRIVATE_H
74 
75 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
76 
77 
78 #define PRV_DEFAULTTIMEOUT -1
79 #define PRV_LISTENBACKLOG 50
80 
81 OFCondition DUL_InitializeFSM(void);
83 PRV_StateMachine(PRIVATE_NETWORKKEY ** network,
84  PRIVATE_ASSOCIATIONKEY ** association, int event, int state,
85  void *params);
86 
88 constructAssociatePDU(DUL_ASSOCIATESERVICEPARAMETERS * items,
89  unsigned char type, PRV_ASSOCIATEPDU * pdu);
91 constructAssociateRejectPDU(unsigned char result,
92  unsigned char source, unsigned char reason,
94 OFCondition constructReleaseRQPDU(DUL_REJECTRELEASEABORTPDU * pdu, unsigned long mode);
95 OFCondition constructReleaseRPPDU(DUL_REJECTRELEASEABORTPDU * pdu);
97 constructAbortPDU(unsigned char src, unsigned char reason,
98  DUL_REJECTRELEASEABORTPDU * pdu, unsigned long mode);
100 constructDataPDU(void *buf, unsigned long length, DUL_DATAPDV type,
101  DUL_PRESENTATIONCONTEXTID ctxID, OFBool last, DUL_DATAPDU * pdu);
103 streamAssociatePDU(PRV_ASSOCIATEPDU * assoc, unsigned char *b,
104  unsigned long maxLength, unsigned long *rtnLen);
106 streamRejectReleaseAbortPDU(DUL_REJECTRELEASEABORTPDU * pdu,
107  unsigned char *b, unsigned long maxLength, unsigned long *rtnLen);
109 streamDataPDUHead(DUL_DATAPDU * pdu, unsigned char *buf,
110  unsigned long maxLength, unsigned long *rtnLen);
112 parseAssociate(unsigned char *buf, unsigned long len,
113  PRV_ASSOCIATEPDU * pdu);
115 PRV_NextPDUType(PRIVATE_ASSOCIATIONKEY ** association,
116  DUL_BLOCKOPTIONS block, int timeout, unsigned char *type);
117 
118 #endif
119 
120 /*
121 ** CVS Log
122 ** $Log: dulpriv.h,v $
123 ** Revision 1.11 2010-12-01 08:26:37 joergr
124 ** Added OFFIS copyright header (beginning with the year 1994).
125 **
126 ** Revision 1.10 2010-10-14 13:19:29 joergr
127 ** Updated copyright header. Added reference to COPYRIGHT file.
128 **
129 ** Revision 1.9 2009-11-18 11:53:59 uli
130 ** Switched to logging mechanism provided by the "new" oflog module.
131 **
132 ** Revision 1.8 2005-12-08 15:48:09 meichel
133 ** Updated Makefiles to correctly install header files
134 **
135 ** Revision 1.7 2004/02/25 12:31:17 meichel
136 ** Added global option flag for compatibility with very old DCMTK releases in the
137 ** DICOM upper layer and ACSE code. Default is automatic handling, which should
138 ** work in most cases.
139 **
140 ** Revision 1.6 2001/10/12 10:18:41 meichel
141 ** Replaced the CONDITION types, constants and functions in the dcmnet module
142 ** by an OFCondition based implementation which eliminates the global condition
143 ** stack. This is a major change, caveat emptor!
144 **
145 ** Revision 1.5 2001/09/26 12:29:04 meichel
146 ** Implemented changes in dcmnet required by the adaptation of dcmdata
147 ** to class OFCondition. Removed some unused code.
148 **
149 ** Revision 1.4 2000/03/03 14:11:26 meichel
150 ** Implemented library support for redirecting error messages into memory
151 ** instead of printing them to stdout/stderr for GUI applications.
152 **
153 ** Revision 1.3 1997/07/21 08:47:25 andreas
154 ** - Replace all boolean types (BOOLEAN, CTNBOOLEAN, DICOM_BOOL, BOOL)
155 ** with one unique boolean type OFBool.
156 **
157 ** Revision 1.2 1997/01/13 15:53:13 hewett
158 ** Added missing function prototypes (required for CodeWarrior 10).
159 **
160 ** Revision 1.1.1.1 1996/03/26 18:38:46 hewett
161 ** Initial Release.
162 **
163 **
164 */


Generated on Thu Dec 20 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.2