/usr/include/rfx.h is in libion-dev 3.2.1+dfsg-1.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 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | /*
rfx.h: definition of the application programming interface
for managing ION's time-ordered lists of contacts
and ranges.
Copyright (c) 2007, California Institute of Technology.
ALL RIGHTS RESERVED. U.S. Government Sponsorship
acknowledged.
*/
/* Author: Scott Burleigh, Jet Propulsion Laboratory */
/* */
#ifndef _RFX_H_
#define _RFX_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "ion.h"
#define RFX_NOTE_LEN 144
/* * Red-black tree ordering and deletion functions. * */
extern int rfx_order_ranges(PsmPartition partition, PsmAddress nodeData,
void *dataBuffer);
extern int rfx_order_contacts(PsmPartition partition, PsmAddress nodeData,
void *dataBuffer);
extern int rfx_order_events(PsmPartition partition, PsmAddress nodeData,
void *dataBuffer);
extern void rfx_erase_data(PsmPartition partition, PsmAddress nodeData,
void *argument);
/* * Functions for inserting and removing contact notes. */
extern PsmAddress rfx_insert_contact(time_t fromTime,
time_t toTime,
uvast fromNode,
uvast toNode,
unsigned int xmitRate);
/* Creates a new IonContact object,
inserts that object into the contacts
list in the ION database, and returns
the address of the IonCXref object for
that contact.
Returns zero on any error. */
extern char *rfx_print_contact(PsmAddress contact, char *buffer);
/* Prints the indicated IonCXref
object into buffer, which must be
of length no less than RFX_NOTE_LEN.
Returns buffer, or NULL on any error. */
extern int rfx_remove_contact(time_t fromTime,
uvast fromNode,
uvast toNode);
/* Removes the indicated IonContact
object from the time-ordered contacts
list in the ION database. */
/* * Functions for inserting and removing range notes. */
extern PsmAddress rfx_insert_range(time_t fromTime,
time_t toTime,
uvast fromNode,
uvast toNode,
unsigned int owlt);
/* Creates a new IonRange object,
inserts that object into the ranges
list in the ION database, and returns
the address of the IonRXref entry for
that range.
Returns zero on any error. */
extern char *rfx_print_range(PsmAddress range, char *buffer);
/* Prints the indicated IonRXref
object into buffer, which must be
of length no less than RFX_NOTE_LEN.
Returns buffer, or NULL on any error. */
extern int rfx_remove_range(time_t fromTime,
uvast fromNode,
uvast toNode);
/* Removes the indicated IonRange
object from the time-ordered ranges
list in the ION database. */
/* * Functions for controlling the rfxclock. */
extern int rfx_start();
extern int rfx_system_is_started();
extern void rfx_stop();
/* * Additional database management functions. */
extern IonNeighbor *findNeighbor(IonVdb *ionvdb, uvast nodeNbr,
PsmAddress *nextElt);
extern IonNeighbor *addNeighbor(IonVdb *ionvdb, uvast nodeNbr);
extern IonNode *findNode(IonVdb *ionvdb, uvast nodeNbr,
PsmAddress *nextElt);
extern IonNode *addNode(IonVdb *ionvdb, uvast nodeNbr);
extern int addSnub(IonNode *node, uvast neighborNodeNbr);
extern void removeSnub(IonNode *node, uvast neighborNodeNbr);
extern PsmAddress postProbeEvent(IonNode *node, IonSnub *snub);
#ifdef __cplusplus
}
#endif
#endif /* _RFX_H_ */
|