Last change
on this file since 2138 was
409,
checked in by ymipsl, 12 years ago
|
Add improved nectdf internal library src
YM
|
-
Property svn:eol-style set to
native
|
File size:
847 bytes
|
Rev | Line | |
---|
[409] | 1 | /* |
---|
| 2 | * rc.h |
---|
| 3 | * |
---|
| 4 | * Created on: Mar 5, 2009 |
---|
| 5 | * Author: rikki |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #ifndef RC_H_ |
---|
| 9 | #define RC_H_ |
---|
| 10 | |
---|
| 11 | /* Max .dodsrc line size */ |
---|
| 12 | #define MAXRCLINESIZE 2048 |
---|
| 13 | |
---|
| 14 | /* Max number of triples in a .dodsrc */ |
---|
| 15 | #define MAXRCLINES 2048 |
---|
| 16 | |
---|
| 17 | /* Create a triple store for (url,key,value) and sorted by url */ |
---|
| 18 | |
---|
| 19 | /* Actual triple store */ |
---|
| 20 | extern struct OCTriplestore { |
---|
| 21 | int ntriples; |
---|
| 22 | struct OCTriple { |
---|
| 23 | char url[MAXRCLINESIZE]; |
---|
| 24 | char key[MAXRCLINESIZE]; |
---|
| 25 | char value[MAXRCLINESIZE]; |
---|
| 26 | } triples[MAXRCLINES]; |
---|
| 27 | } *ocdodsrc; |
---|
| 28 | |
---|
| 29 | extern int ocdodsrc_read(char* basename,char *in_file_name); |
---|
| 30 | extern int ocdodsrc_process(OCstate* state); |
---|
| 31 | extern char* ocdodsrc_lookup(char* key, char* url); |
---|
| 32 | |
---|
| 33 | extern int occredentials_in_url(const char *url); |
---|
| 34 | extern int ocextract_credentials(const char *url, char **name, char **pw, char **result_url); |
---|
| 35 | |
---|
| 36 | #endif /* RC_H_ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.