/* Copyright 2009, UCAR/Unidata and OPeNDAP, Inc. See the COPYRIGHT file for more information. */ #ifndef DAPURL_H #define DAPURL_H /* Forward */ struct OClist; /*! This is an open structure meaning it is ok to directly access its fields*/ typedef struct DAPURL { char* url; /* as passed by the caller */ char* base; /*!< without constraints*/ char* protocol; char* projection; /*!< without leading '?'*/ char* selection; /*!< with leading '&'*/ char* params; struct OClist* paramlist; } DAPURL; extern int dapurlparse(const char* s, DAPURL* dapurl); extern void dapurlclear(DAPURL* dapurl);/*! entry not found. Empty value should be represented as a zero length string */ extern const char* dapurllookup(DAPURL*, const char* clientparam); #endif /*DAPURL_H*/