xref: /onnv-gate/usr/src/lib/libstmfproxy/common/libstmfproxy.h (revision 10725:cd144ed668c5)
1*10725SJohn.Forte@Sun.COM /*
2*10725SJohn.Forte@Sun.COM  * CDDL HEADER START
3*10725SJohn.Forte@Sun.COM  *
4*10725SJohn.Forte@Sun.COM  * The contents of this file are subject to the terms of the
5*10725SJohn.Forte@Sun.COM  * Common Development and Distribution License (the "License").
6*10725SJohn.Forte@Sun.COM  * You may not use this file except in compliance with the License.
7*10725SJohn.Forte@Sun.COM  *
8*10725SJohn.Forte@Sun.COM  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*10725SJohn.Forte@Sun.COM  * or http://www.opensolaris.org/os/licensing.
10*10725SJohn.Forte@Sun.COM  * See the License for the specific language governing permissions
11*10725SJohn.Forte@Sun.COM  * and limitations under the License.
12*10725SJohn.Forte@Sun.COM  *
13*10725SJohn.Forte@Sun.COM  * When distributing Covered Code, include this CDDL HEADER in each
14*10725SJohn.Forte@Sun.COM  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*10725SJohn.Forte@Sun.COM  * If applicable, add the following below this CDDL HEADER, with the
16*10725SJohn.Forte@Sun.COM  * fields enclosed by brackets "[]" replaced with your own identifying
17*10725SJohn.Forte@Sun.COM  * information: Portions Copyright [yyyy] [name of copyright owner]
18*10725SJohn.Forte@Sun.COM  *
19*10725SJohn.Forte@Sun.COM  * CDDL HEADER END
20*10725SJohn.Forte@Sun.COM  */
21*10725SJohn.Forte@Sun.COM /*
22*10725SJohn.Forte@Sun.COM  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*10725SJohn.Forte@Sun.COM  * Use is subject to license terms.
24*10725SJohn.Forte@Sun.COM  */
25*10725SJohn.Forte@Sun.COM 
26*10725SJohn.Forte@Sun.COM #ifndef	_LIBSTMFPROXY_H
27*10725SJohn.Forte@Sun.COM #define	_LIBSTMFPROXY_H
28*10725SJohn.Forte@Sun.COM 
29*10725SJohn.Forte@Sun.COM #ifdef	__cplusplus
30*10725SJohn.Forte@Sun.COM extern "C" {
31*10725SJohn.Forte@Sun.COM #endif
32*10725SJohn.Forte@Sun.COM 
33*10725SJohn.Forte@Sun.COM #include <sys/types.h>
34*10725SJohn.Forte@Sun.COM 
35*10725SJohn.Forte@Sun.COM struct _pt_ops {
36*10725SJohn.Forte@Sun.COM 	void *(*stmf_proxy_connect)(int server_node, char *server);
37*10725SJohn.Forte@Sun.COM 	ssize_t (*stmf_proxy_send)(void *, void *, size_t);
38*10725SJohn.Forte@Sun.COM 	ssize_t (*stmf_proxy_recv)(void *, void *, size_t);
39*10725SJohn.Forte@Sun.COM };
40*10725SJohn.Forte@Sun.COM 
41*10725SJohn.Forte@Sun.COM typedef struct _pt_ops pt_ops_t;
42*10725SJohn.Forte@Sun.COM 
43*10725SJohn.Forte@Sun.COM int
44*10725SJohn.Forte@Sun.COM stmf_proxy_transport_init(char *transport, pt_ops_t **pt_ops);
45*10725SJohn.Forte@Sun.COM 
46*10725SJohn.Forte@Sun.COM #ifdef	__cplusplus
47*10725SJohn.Forte@Sun.COM }
48*10725SJohn.Forte@Sun.COM #endif
49*10725SJohn.Forte@Sun.COM 
50*10725SJohn.Forte@Sun.COM #endif	/* _LIBSTMFPROXY_H */
51