Exemple #1
0
TSC_string* TSC_value::G_content_string()
{
	checkcontent(GETDATATYPE_STRING);
	return (TSC_string*)content;
}
Exemple #2
0
TSC_scalar* TSC_value::G_content_scalar()
{
	checkcontent(GETDATATYPE_SCALAR);
	return (TSC_scalar*)content;
}
Exemple #3
0
static int Cgetparent (lua_State *L) { /** content.parent */
  ExifContent *content = checkcontent(L);
  pushdata(L, content->parent);
  return 1;
}
Exemple #4
0
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;
}
Exemple #5
0
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;
}
Exemple #6
0
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;
}
Exemple #7
0
static int Cfix (lua_State *L) { /** content:fix() */
  ExifContent *content = checkcontent(L);
  exif_content_fix(content);
  return 0;
}