forked from alandipert/ncsa-mosaic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cciBindings2.h
107 lines (100 loc) · 6.09 KB
/
cciBindings2.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/****************************************************************************
* NCSA Mosaic for the X Window System *
* Software Development Group *
* National Center for Supercomputing Applications *
* University of Illinois at Urbana-Champaign *
* 605 E. Springfield, Champaign IL 61820 *
* *
* Copyright (C) 1993, Board of Trustees of the University of Illinois *
* *
* NCSA Mosaic software, both binary and source (hereafter, Software) is *
* copyrighted by The Board of Trustees of the University of Illinois *
* (UI), and ownership remains with the UI. *
* *
* The UI grants you (hereafter, Licensee) a license to use the Software *
* for academic, research and internal business purposes only, without a *
* fee. Licensee may distribute the binary and source code (if released) *
* to third parties provided that the copyright notice and this statement *
* appears on all copies and that no charge is associated with such *
* copies. *
* *
* Licensee may make derivative works. However, if Licensee distributes *
* any derivative work based on or derived from the Software, then *
* Licensee will (1) notify NCSA regarding its distribution of the *
* derivative work, and (2) clearly notify users that such derivative *
* work is a modified version and not the original NCSA Mosaic *
* distributed by the UI. *
* *
* Any Licensee wishing to make commercial use of the Software should *
* contact the UI, c/o NCSA, to negotiate an appropriate license for such *
* commercial use. Commercial use includes (1) integration of all or *
* part of the source code into a product for sale or license by or on *
* behalf of Licensee to third parties, or (2) distribution of the binary *
* code or source code to third parties that need it to utilize a *
* commercial product sold or licensed by or on behalf of Licensee. *
* *
* UI MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THIS SOFTWARE FOR *
* ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED *
* WARRANTY. THE UI SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY THE *
* USERS OF THIS SOFTWARE. *
* *
* By using or copying this Software, Licensee agrees to abide by the *
* copyright law and all other applicable laws of the U.S. including, but *
* not limited to, export control laws, and the terms of this license. *
* UI shall have the right to terminate this license immediately by *
* written notice upon Licensee's breach of, or non-compliance with, any *
* of its terms. Licensee may be held legally responsible for any *
* copyright infringement that is caused or encouraged by Licensee's *
* failure to abide by the terms of this license. *
* *
* Comments and questions are welcome and can be sent to *
* [email protected]. *
****************************************************************************/
/*
* Created: Wed Apr 10 17:41:00 CDT 1996
* Author: Dan Pape
*
*/
/* this file contains stuff from the old "mosaic.h" file. I am breaking
that file up because it was too big, and required a re-compile of all
the source whenever something changed. */
#ifndef __CCIBINDINGS2_H__
#define __CCIBINDINGS2_H__
#include "cci.h"
#include "cciServer.h"
cciStat *cciStatListFindEntry(MCCIPort findMe);
cciStat *cciStatListDeleteEntry(MCCIPort deleteMe);
void cciStatPreventSendAnchor(MCCIPort client, char *url);
int cciSafeToSend(cciStat *current, char *url);
void cciStatFree(cciStat *i);
void MoCCISendAnchor(MCCIPort client, int sendIt);
void MoCCISendAnchorToCCI(char *url, int beforeAfter);
void MoCCISendEvent(MCCIPort client, int on);
void MoCCISendMouseAnchor(MCCIPort client, int on);
void MoCCISendBrowserView(MCCIPort client, int on);
void MoCCIForm(MCCIPort client, char *actionID, int status, int close_connection);
int MoCCIPreInitialize();
int MoCCIInitialize(int portNumber);
int MoCCITerminateAllConnections();
int MoCCITerminateAConnection(MCCIPort client);
void MoCCIHandleInput(MCCIPort client,int source);
void MoCCINewConnection(XtAppContext app_context,int *source,XtInputId *inputID);
static XmxCallback (MoCCIWindowCallBack);
mo_status MoDisplayCCIWindow(mo_window *win);
void MoCCISendOutputToClient(char *contentType,char *fileName);
int MoCCIFormToClient(char *actionID, char *query, char *contentType,
char *post_data, int status);
void MoCCISendOutput(MCCIPort client,Boolean sendIt,char *contentType);
void MoCCIStartListening(Widget w,int port);
void MoCCISendEventOutput(CCI_events event_type);
void MoCCISendMouseAnchorOutput(char *anchor);
void MoCCISendBrowserViewOutput(char *url, char *contentType,
char *data, int dataLength);
int MoCCISendBrowserViewFile(char *url, char *contentType, char *filename);
int MoCCIMaxNumberOfConnectionsAllowed();
int MoCCICurrentNumberOfConnections();
void MoCCIAddFileURLToList(char *fileName,char *url);
char *MoReturnURLFromFileName(char *fileName);
void MoCCIAddAnchorToURL(char *url, char *urlAndAnchor);
#endif