• Home
  • Raw
  • Download

Lines Matching refs:log

73 	ExifLog *log;  in exif_log_new_mem()  local
75 log = exif_mem_alloc (mem, sizeof (ExifLog)); in exif_log_new_mem()
76 if (!log) return NULL; in exif_log_new_mem()
77 log->ref_count = 1; in exif_log_new_mem()
79 log->mem = mem; in exif_log_new_mem()
82 return log; in exif_log_new_mem()
89 ExifLog *log = exif_log_new_mem (mem); in exif_log_new() local
93 return log; in exif_log_new()
97 exif_log_ref (ExifLog *log) in exif_log_ref() argument
99 if (!log) return; in exif_log_ref()
100 log->ref_count++; in exif_log_ref()
104 exif_log_unref (ExifLog *log) in exif_log_unref() argument
106 if (!log) return; in exif_log_unref()
107 if (log->ref_count > 0) log->ref_count--; in exif_log_unref()
108 if (!log->ref_count) exif_log_free (log); in exif_log_unref()
112 exif_log_free (ExifLog *log) in exif_log_free() argument
114 ExifMem *mem = log ? log->mem : NULL; in exif_log_free()
116 if (!log) return; in exif_log_free()
118 exif_mem_free (mem, log); in exif_log_free()
123 exif_log_set_func (ExifLog *log, ExifLogFunc func, void *data) in exif_log_set_func() argument
125 if (!log) return; in exif_log_set_func()
126 log->func = func; in exif_log_set_func()
127 log->data = data; in exif_log_set_func()
135 exif_log (ExifLog *log, ExifLogCode code, const char *domain, in exif_log() argument
141 exif_logv (log, code, domain, format, args); in exif_log()
146 exif_logv (ExifLog *log, ExifLogCode code, const char *domain, in exif_logv() argument
149 if (!log) return; in exif_logv()
150 if (!log->func) return; in exif_logv()
151 log->func (log, code, domain, format, args, log->data); in exif_logv()