45 contact->
phone = NULL;
51 contact->
state = NULL;
53 contact->
email = NULL;
54 contact->
hours = NULL;
99 metadata->
name = NULL;
100 metadata->
type = NULL;
102 metadata->
title = NULL;
105 metadata->
fees = NULL;
188 fprintf(output,
"name: ");
190 fprintf(output,
"\n");
194 fprintf(output,
"site: ");
196 fprintf(output,
"\n");
200 fprintf(output,
"individual name: ");
202 fprintf(output,
"\n");
206 fprintf(output,
"position: ");
208 fprintf(output,
"\n");
211 if (contact->
phone) {
212 fprintf(output,
"phone: ");
214 fprintf(output,
"\n");
218 fprintf(output,
"fax: ");
220 fprintf(output,
"\n");
224 fprintf(output,
"online_resource: ");
226 fprintf(output,
"\n");
230 fprintf(output,
"address: ");
232 fprintf(output,
"\n");
236 fprintf(output,
"postcode: ");
238 fprintf(output,
"\n");
242 fprintf(output,
"city: ");
244 fprintf(output,
"\n");
247 if (contact->
state) {
248 fprintf(output,
"administrative_area: ");
250 fprintf(output,
"\n");
254 fprintf(output,
"country: ");
256 fprintf(output,
"\n");
259 if (contact->
email) {
260 fprintf(output,
"email: ");
262 fprintf(output,
"\n");
265 if (contact->
hours) {
266 fprintf(output,
"hours_of_service: ");
268 fprintf(output,
"\n");
272 fprintf(output,
"contact_instructions: ");
274 fprintf(output,
"\n");
291 if (metadata->
name) {
292 fprintf(output,
"name: ");
294 fprintf(output,
"\n");
297 if (metadata->
type) {
298 fprintf(output,
"type: ");
300 fprintf(output,
"\n");
304 fprintf(output,
"version: ");
306 fprintf(output,
"\n");
309 if (metadata->
title) {
310 fprintf(output,
"title: ");
312 fprintf(output,
"\n");
316 fprintf(output,
"abstract: ");
318 fprintf(output,
"\n");
322 fprintf(output,
"keywords: ");
324 fprintf(output,
"\n");
327 if (metadata->
fees) {
328 fprintf(output,
"fees: ");
330 fprintf(output,
"\n");
334 fprintf(output,
"access_constraints: ");
336 fprintf(output,
"\n");
void buffer_copy(buffer *dest, const buffer *src)
void list_flush(const list *l, FILE *output)
void buffer_flush(buffer *buf, FILE *output)
bool buffer_case_cmp(const buffer *buf, const char *str)
buffer * array_get(const array *a, const char *key)
void ows_error(ows *o, enum ows_error_code code, char *message, char *locator)
void list_add_str(list *l, char *value)
bool array_is_key(const array *a, const char *key)
buffer * buffer_from_str(const char *str)
void buffer_free(buffer *buf)
void ows_contact_flush(ows_contact *contact, FILE *output)
void ows_metadata_flush(ows_meta *metadata, FILE *output)
struct Ows_contact ows_contact
@ OWS_ERROR_MISSING_PARAMETER_VALUE