mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
37 lines
847 B
C
37 lines
847 B
C
/*
|
|
* rc.h
|
|
*
|
|
* Created on: Mar 5, 2009
|
|
* Author: rikki
|
|
*/
|
|
|
|
#ifndef RC_H_
|
|
#define RC_H_
|
|
|
|
/* Max .dodsrc line size */
|
|
#define MAXRCLINESIZE 2048
|
|
|
|
/* Max number of triples in a .dodsrc */
|
|
#define MAXRCLINES 2048
|
|
|
|
/* Create a triple store for (url,key,value) and sorted by url */
|
|
|
|
/* Actual triple store */
|
|
extern struct OCTriplestore {
|
|
int ntriples;
|
|
struct OCTriple {
|
|
char url[MAXRCLINESIZE];
|
|
char key[MAXRCLINESIZE];
|
|
char value[MAXRCLINESIZE];
|
|
} triples[MAXRCLINES];
|
|
} *ocdodsrc;
|
|
|
|
extern int ocdodsrc_read(char* basename,char *in_file_name);
|
|
extern int ocdodsrc_process(OCstate* state);
|
|
extern char* ocdodsrc_lookup(char* key, char* url);
|
|
|
|
extern int occredentials_in_url(const char *url);
|
|
extern int ocextract_credentials(const char *url, char **name, char **pw, char **result_url);
|
|
|
|
#endif /* RC_H_ */
|