TSC_string* TSC_value::G_content_string() { checkcontent(GETDATATYPE_STRING); return (TSC_string*)content; }
TSC_scalar* TSC_value::G_content_scalar() { checkcontent(GETDATATYPE_SCALAR); return (TSC_scalar*)content; }
static int Cgetparent (lua_State *L) { /** content.parent */ ExifContent *content = checkcontent(L); pushdata(L, content->parent); return 1; }
static int Centries (lua_State *L) { /** content:entries() */ ExifContent *content = checkcontent(L); lua_newtable(L); exif_content_foreach_entry(content, entryfunc, (void *)L); return 1; }
static int Cgetifd (lua_State *L) { /** content.ifd */ ExifContent *content = checkcontent(L); ExifIfd ifd = exif_content_get_ifd(content); lua_pushstring(L, exif_ifd_get_name(ifd)); return 1; }
static int Centry (lua_State *L) { /** content:entry(tag) */ ExifContent *content = checkcontent(L); ExifTag tag = exif_tag_from_name(luaL_checkstring(L, 2)); pushentry(L, exif_content_get_entry(content, tag)); return 1; }
static int Cfix (lua_State *L) { /** content:fix() */ ExifContent *content = checkcontent(L); exif_content_fix(content); return 0; }