bb94d2af4acdb627bb464a676fba84108bb7f48e
[ric-plt/lib/rmr.git] / src / rmr / si / src / si95 / siproto.h
1 // vim: noet sw=4 ts=4:
2 /*
3 ==================================================================================
4     Copyright (c) 2020 Nokia
5     Copyright (c) 2020 AT&T Intellectual Property.
6
7    Licensed under the Apache License, Version 2.0 (the "License");
8    you may not use this file except in compliance with the License.
9    You may obtain a copy of the License at
10
11        http://www.apache.org/licenses/LICENSE-2.0
12
13    Unless required by applicable law or agreed to in writing, software
14    distributed under the License is distributed on an "AS IS" BASIS,
15    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16    See the License for the specific language governing permissions and
17    limitations under the License.
18 ==================================================================================
19 */
20
21 /*
22 -----------------------------------------------------------------------------------
23         Mnemonic: siproto.h
24         Abstract: Prototypes for SI95
25
26         Date:     24 October 2019
27         Author:   E. Scott Daniels
28
29 -----------------------------------------------------------------------------------
30 */
31
32
33 extern void *SInew( int type );
34 extern char *sigetname( int sid );
35 extern int SIaddress( void *src, void **dest, int type );
36 extern void SIbldpoll( struct ginfo_blk* gptr  );
37 extern struct tp_blk *SIconn_prep( struct ginfo_blk *gptr, int type, char *abuf, int family );
38 extern void SIcbreg( struct ginfo_blk *gptr, int type, int ((*fptr)()), void * dptr );
39 extern void SIcbstat( struct ginfo_blk *gptr, int status, int type );
40 extern int SIclose( struct ginfo_blk *gptr, int fd );
41 extern int SIconnect( struct ginfo_blk *gptr, char *abuf );
42 extern struct tp_blk *SIestablish( int type, char *abuf, int family );
43 extern int SIgenaddr( char *target, int proto, int family, int socktype, struct sockaddr **rap );
44 extern int SIgetaddr( struct ginfo_blk *gptr, char *buf );
45 extern struct tp_blk *SIlisten_prep( struct ginfo_blk *gptr, int type, char* abuf, int family );
46 extern int SIlistener( struct ginfo_blk *gptr, int type, char *abuf );
47 extern void SImap_fd( struct ginfo_blk *gptr, int fd, struct tp_blk* tpptr );
48 extern int SInewsession( struct ginfo_blk *gptr, struct tp_blk *tpptr );
49 extern int SIpoll( struct ginfo_blk *gptr, int msdelay );
50 extern int SIrcv( struct ginfo_blk *gptr, int sid, char *buf, int buflen, char *abuf, int delay );
51 extern void SIsend( struct ginfo_blk *gptr, struct tp_blk *tpptr );
52 extern int SIsendt( struct ginfo_blk *gptr, int fd, char *ubuf, int ulen );
53 extern void SIset_tflags( struct ginfo_blk* gp, int flags );
54 extern int SIshow_version( );
55 extern void SIshutdown( struct ginfo_blk *gptr );
56 extern void SItp_stats( void *vgp );
57 extern void SIterm( struct ginfo_blk* gptr, struct tp_blk *tpptr );
58 extern void SItrash( int type, void *bp );
59 extern int SIwait( struct ginfo_blk *gptr );
60 extern struct ginfo_blk* SIinitialise( int opts );