~ubuntu-branches/ubuntu/vivid/liferea/vivid-proposed

« back to all changes in this revision

Viewing changes to src/metadata.h

  • Committer: Package Import Robot
  • Author(s): bojo42
  • Date: 2012-03-29 14:17:21 UTC
  • mfrom: (1.3.9) (3.2.5 sid)
  • Revision ID: package-import@ubuntu.com-20120329141721-tbfopcrc5797wxt7
Tags: 1.8.3-0.1ubuntu1
* New upstream release (LP: #290666, #371754, #741543, #716688)
* Merge from Debian unstable (LP: #935147), remaining changes:
* debian/patches:
  - drop gtk-status-icon.patch & notification-append as in upstream
  - drop fix_systray_behavior as mostly upstreamed and rest seems unused
  - 01_ubuntu_feedlists: update & rename, move planets to "Open Source"  
  - add_X-Ubuntu-Gettext-Domain: rebase
  - libunity.patch: rebase, apply before indicator patch (liferea_shell.c)
  - libindicate_increase_version.patch: exclude from libindicate.patch
  - deactivate libindicate.patch, seems partly upstreamed and needs rework
* debian/control: libindicate-dev, libindicate-gtk-dev & libunity-dev
* debian/liferea.indicate & liferea.install: ship indicator desktop file
* debian/rules: enable libindicate

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
        parseChannelTagFunc     parseChannelTag;        /**< channel tag parsing method */
47
47
} NsHandler;
48
48
 
 
49
/** Metadata value types */
 
50
enum {
 
51
        METADATA_TYPE_TEXT = 1, /**< metadata can be any character data and needs escaping */
 
52
        METADATA_TYPE_URL = 2,  /**< metadata is an URL and guaranteed to be valid for use in XML */
 
53
        METADATA_TYPE_HTML = 3  /**< metadata is XHTML content and valid to be embedded in XML */
 
54
};
 
55
 
 
56
/**
 
57
 * Register a metadata type. This allows type specific
 
58
 * sanity handling and detecting invalid metadata.
 
59
 *
 
60
 * @param name  key name
 
61
 * @param type  key type
 
62
 */
 
63
void metadata_type_register (const gchar *name, gint);
 
64
 
 
65
/**
 
66
 * Checks whether a metadata type is registered
 
67
 *
 
68
 * @param strid         the metadata type identifier
 
69
 *
 
70
 * @returns TRUE if the metadata type is registered, otherwise FALSE
 
71
 */
 
72
gboolean metadata_is_type_registered (const gchar *strid);
 
73
 
49
74
/** 
50
75
 * Appends a value to the value list of a specific metadata type 
51
76
 * Don't mix this function with metadata_list_set() !