/usr/include/xview/selection.h is in xviewg-dev 3.2p1.4-28.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | /* @(#)selection.h 20.18 93/06/28 SMI */
/*
* (c) Copyright 1989 Sun Microsystems, Inc. Sun design patents
* pending in the U.S. and foreign countries. See LEGAL NOTICE
* file for terms of the license.
*/
#ifndef xview_seln_DEFINED
#define xview_seln_DEFINED
#include <xview/xv_c_types.h>
/*
* **********************************************************************
*
* Definitions and Macros
*
* **********************************************************************
*/
/*
* PUBLIC #defines
*/
/*
* sel_type values
*/
#define SELTYPE_NULL 0
#define SELTYPE_CHAR 1
/*
* sel_itembytes values
*/
#define SEL_UNKNOWNITEMS -1 /* Don't know how many items */
/*
* sel_pubflags values
*/
#define SEL_PRIMARY 0X01 /* Primary selection */
#define SEL_SECONDARY 0X02 /* Secondary selection */
/*
* **********************************************************************
*
* Typedefs, Enumerations, and Structures **********************************************************************
*
*/
struct selection {
int sel_type, sel_items, sel_itembytes, sel_pubflags;
caddr_t sel_privdata;
};
/*
* **********************************************************************
*
* Globals **********************************************************************
*
*/
/*
* Public variables
*/
extern struct selection selnull;
/*
* Public Functions
*/
#ifdef xview_other_selection_funcs
/*
* Create the selection
*/
EXTERN_FUNCTION (void selection_set, (struct selection *sel, int (*sel_write) (), int (*sel_clear) (), Xv_opaque window));
/*
* Fetch the selection
*/
EXTERN_FUNCTION (void selection_get, (int (*sel_read) (), Xv_opaque window));
/*
* Clear the selection
*/
EXTERN_FUNCTION (void selection_clear, (Xv_opaque window));
/*
* Write the bits of the selection
*/
EXTERN_FUNCTION (void sel_write, (struct selection * sel, FILE * file));
/*
* Read the bits of the selection
*/
EXTERN_FUNCTION (void sel_read, (struct selection * sel, FILE * file));
/*
* As the owner of the selection you should clear your hiliting because you
* are no longer the selection owner.
*/
EXTERN_FUNCTION (void sel_clear, (struct selection * sel, int window));
#endif /* xview_other_selection_funcs */
#endif /* ~xview_seln_DEFINED */
|