/usr/share/doc/flickcurl-doc/flickcurl-searching-search-result-formats.html is in flickcurl-doc 1.25-1ubuntu1.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Search result format</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Flickcurl Flickr API Manual">
<link rel="up" href="flickcurl-searching.html" title="Searching for Photos with Flickcurl">
<link rel="prev" href="flickcurl-searching-search-extras.html" title="Extra result fields">
<link rel="next" href="flickcurl-searching-search-run.html" title="Run the search for photos">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
<td><a accesskey="p" href="flickcurl-searching-search-extras.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="flickcurl-searching.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Flickcurl Flickr API Manual</th>
<td><a accesskey="n" href="flickcurl-searching-search-run.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr></table>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="flickcurl-searching-search-result-formats"></a>Search result format</h2></div></div></div>
<p>
Searching normally returns what is called a
<span class="emphasis"><em>Standard Photo Response (SPR)</em></span> which is a list of
photos with lots of fields, turned into a C array of pointers to
<a class="link" href="flickcurl-section-photo.html#flickcurl-photo" title="flickcurl_photo">flickcurl_photo</a> structs
by Flickcurl.
There are alternate syntax formats that may be returned and these can
be configured by setting the field <code class="code">format</code> in the
<a class="link" href="flickcurl-section-photoslist.html#flickcurl-photos-list-params" title="flickcurl_photos_list_params">flickcurl_photos_list_params</a>
to a format name such as <code class="code">"feed-kml"</code> for a KML 2.1 feed
result. When this is done, Flickcurl will NOT return an array of
<a class="link" href="flickcurl-section-photo.html#flickcurl-photo" title="flickcurl_photo">flickcurl_photo</a> structs
but will make available the raw content bytes from the web
service result as a C string. The default format is SPR and is
either chosen by <code class="code">format</code> field NULL or
string <code class="code">"xml"</code>.
</p>
<p>Use
<a class="link" href="flickcurl-section-core.html#flickcurl-get-feed-format-info" title="flickcurl_get_feed_format_info ()">flickcurl_get_feed_format_info()</a>
to get list the known <code class="code">format</code> names and descriptions at runtime.
</p>
<p>The following code fragment initialises a list parameters block
on the stack and then configures the result format name
to <code class="code">feed-kml</code> for a KML 2.1 feed result.
</p>
<pre class="programlisting">
flickcurl_photos_list_params list_params;
flickcurl_photos_list_params_init(&list_params);
list_params.format = "feed-kml";
</pre>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>
|