~ubuntu-branches/ubuntu/vivid/babeltrace/vivid

« back to all changes in this revision

Viewing changes to lib/registry.c

  • Committer: Package Import Robot
  • Author(s): Jon Bernard, a457ed8
  • Date: 2013-04-02 15:49:18 UTC
  • mfrom: (1.1.8) (0.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20130402154918-njndzk94lffxhlmx
Tags: 1.1.0-1
[a457ed8] New upstream version 1.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
                format_cleanup();
68
68
}
69
69
 
70
 
struct format *bt_lookup_format(bt_intern_str name)
 
70
struct bt_format *bt_lookup_format(bt_intern_str name)
71
71
{
72
72
        if (!init_done)
73
73
                return NULL;
103
103
        fprintf(fp, ".\n");
104
104
}
105
105
 
106
 
int bt_register_format(struct format *format)
 
106
int bt_register_format(struct bt_format *format)
107
107
{
108
108
        if (!format)
109
109
                return -EINVAL;
121
121
        return 0;
122
122
}
123
123
 
124
 
void bt_unregister_format(struct format *format)
 
124
void bt_unregister_format(struct bt_format *format)
125
125
{
126
126
        assert(bt_lookup_format(format->name));
127
127
        g_hash_table_remove(format_registry,