|  |  | Flickcurl Flickr API Manual |  | |
|---|---|---|---|---|
| Top | Description | ||||
flickcurl_context; enum flickcurl_context_type; const char * flickcurl_get_context_type_field_label (flickcurl_context_type type); void flickcurl_free_context (flickcurl_context *context); void flickcurl_free_contexts (flickcurl_context **contexts);
typedef struct {
  flickcurl_context_type type;
  char* id;
  char* secret; /* may be NULL */
  int server;   /* may be 0 */
  int farm;     /* may be 0 */
  char* title;  /* may be NULL */
  char* url;    /* may be NULL */
  char* thumb;  /* may be NULL */
} flickcurl_context;
Photo use context.
| flickcurl_context_type  | Type of context | 
| ID | |
| secret | |
| server | |
| farm | |
| use title | |
| url | |
| thumbnail | 
typedef enum {
  FLICKCURL_CONTEXT_NONE,
  FLICKCURL_CONTEXT_SET,  /* other thing is a set */
  FLICKCURL_CONTEXT_POOL, /* other thing is a pool */
  FLICKCURL_CONTEXT_PREV, /* other thing is a previous photo */
  FLICKCURL_CONTEXT_NEXT, /* other thing is a next photo */
  FLICKCURL_CONTEXT_LAST = FLICKCURL_CONTEXT_NEXT
} flickcurl_context_type;
Types of photo context: relationship between photo and another item
const char *        flickcurl_get_context_type_field_label
                                                        (flickcurl_context_type type);
Get label for context type
| 
 | context type | 
| Returns : | label string or NULL if none valid | 
void                flickcurl_free_context              (flickcurl_context *context);
Destructor for context object
| 
 | context object | 
void                flickcurl_free_contexts             (flickcurl_context **contexts);
Destructor for array of context object
| 
 | context object array |