mnote-canon-entry.c File Reference

#include "config.h"
#include "mnote-canon-entry.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libexif/exif-format.h>
#include <libexif/exif-utils.h>
#include <libexif/i18n.h>

Go to the source code of this file.

Defines

#define CF(format, target, v, maxlen)
#define CC(number, target, v, maxlen)
#define CC2(number, t1, t2, v, maxlen)
#define UNDEFINED   0xFF

Functions

unsigned int mnote_canon_entry_count_values (const MnoteCanonEntry *entry)
char * mnote_canon_entry_get_value (const MnoteCanonEntry *entry, unsigned int t, char *val, unsigned int maxlen)

Variables

struct {
   unsigned int   subtag
   ExifShort   value
   char *   name
entries []

Define Documentation

#define CC ( number,
target,
v,
maxlen   ) 
Value:
{                                                                       \
        if (number != target) {                                         \
                snprintf (v, maxlen,                                    \
                        _("Invalid number of components (%i, "          \
                        "expected %i)."), (int) number, (int) target);  \
                break;                                                  \
        }                                                               \
}

Definition at line 47 of file mnote-canon-entry.c.

Referenced by exif_entry_get_value(), mnote_canon_entry_get_value(), mnote_olympus_entry_get_value(), and mnote_pentax_entry_get_value().

#define CC2 ( number,
t1,
t2,
v,
maxlen   ) 
Value:
{                                                                       \
        if ((number != t1) && (number != t2)) {                         \
                snprintf (v, maxlen,                                    \
                        _("Invalid number of components (%i, "          \
                        "expected %i or %i)."), (int) number,           \
                        (int) t1, (int) t2);                            \
                break;                                                  \
        }                                                               \
}

Definition at line 56 of file mnote-canon-entry.c.

Referenced by mnote_olympus_entry_get_value().

#define CF ( format,
target,
v,
maxlen   ) 
Value:
{                                                               \
        if (format != target) {                                 \
                snprintf (v, maxlen,                            \
                        _("Invalid format '%s', "               \
                        "expected '%s'."),                      \
                        exif_format_get_name (format),          \
                        exif_format_get_name (target));         \
                break;                                          \
        }                                                       \
}

Definition at line 35 of file mnote-canon-entry.c.

Referenced by exif_entry_get_value(), mnote_canon_entry_get_value(), mnote_olympus_entry_get_value(), and mnote_pentax_entry_get_value().

#define UNDEFINED   0xFF

Definition at line 67 of file mnote-canon-entry.c.


Function Documentation

unsigned int mnote_canon_entry_count_values ( const MnoteCanonEntry entry  ) 
char* mnote_canon_entry_get_value ( const MnoteCanonEntry entry,
unsigned int  t,
char *  val,
unsigned int  maxlen 
)

Variable Documentation

struct { ... } entries[] [static]
char* name
unsigned int subtag

Definition at line 70 of file mnote-canon-entry.c.

Referenced by mnote_canon_entry_get_value().


Generated on 22 Jan 2011 for EXIF library (libexif) Internals by  doxygen 1.6.1