Lines Matching full:content
1 /* exif-content.c
23 #include <libexif/exif-content.h>
46 ExifContent *content = exif_content_new_mem (mem); in exif_content_new() local
50 return content; in exif_content_new()
56 ExifContent *content; in exif_content_new_mem() local
60 content = exif_mem_alloc (mem, (ExifLong) sizeof (ExifContent)); in exif_content_new_mem()
61 if (!content) in exif_content_new_mem()
63 content->priv = exif_mem_alloc (mem, in exif_content_new_mem()
65 if (!content->priv) { in exif_content_new_mem()
66 exif_mem_free (mem, content); in exif_content_new_mem()
70 content->priv->ref_count = 1; in exif_content_new_mem()
72 content->priv->mem = mem; in exif_content_new_mem()
75 return content; in exif_content_new_mem()
79 exif_content_ref (ExifContent *content) in exif_content_ref() argument
81 content->priv->ref_count++; in exif_content_ref()
85 exif_content_unref (ExifContent *content) in exif_content_unref() argument
87 content->priv->ref_count--; in exif_content_unref()
88 if (!content->priv->ref_count) in exif_content_unref()
89 exif_content_free (content); in exif_content_unref()
93 exif_content_free (ExifContent *content) in exif_content_free() argument
95 ExifMem *mem = (content && content->priv) ? content->priv->mem : NULL; in exif_content_free()
98 if (!content) return; in exif_content_free()
100 for (i = 0; i < content->count; i++) in exif_content_free()
101 exif_entry_unref (content->entries[i]); in exif_content_free()
102 exif_mem_free (mem, content->entries); in exif_content_free()
104 if (content->priv) { in exif_content_free()
105 exif_log_unref (content->priv->log); in exif_content_free()
108 exif_mem_free (mem, content->priv); in exif_content_free()
109 exif_mem_free (mem, content); in exif_content_free()
114 exif_content_dump (ExifContent *content, unsigned int indent) in exif_content_dump() argument
123 if (!content) in exif_content_dump()
126 printf ("%sDumping exif content (%u entries)...\n", buf, in exif_content_dump()
127 content->count); in exif_content_dump()
128 for (i = 0; i < content->count; i++) in exif_content_dump()
129 exif_entry_dump (content->entries[i], indent + 1); in exif_content_dump()
196 exif_content_get_entry (ExifContent *content, ExifTag tag) in exif_content_get_entry() argument
200 if (!content) in exif_content_get_entry()
203 for (i = 0; i < content->count; i++) in exif_content_get_entry()
204 if (content->entries[i]->tag == tag) in exif_content_get_entry()
205 return (content->entries[i]); in exif_content_get_entry()
210 exif_content_foreach_entry (ExifContent *content, in exif_content_foreach_entry() argument
215 if (!content || !func) in exif_content_foreach_entry()
218 for (i = 0; i < content->count; i++) in exif_content_foreach_entry()
219 func (content->entries[i], data); in exif_content_foreach_entry()
223 exif_content_log (ExifContent *content, ExifLog *log) in exif_content_log() argument
225 if (!content || !content->priv || !log || content->priv->log == log) in exif_content_log()
228 if (content->priv->log) exif_log_unref (content->priv->log); in exif_content_log()
229 content->priv->log = log; in exif_content_log()
269 exif_log (c->priv->log, EXIF_LOG_CODE_DEBUG, "exif-content", in remove_not_recorded()
318 exif_log (c->priv->log, EXIF_LOG_CODE_DEBUG, "exif-content", in exif_content_fix()