! rough example code using libexempi FFI ! ! filename: "exempi-example.factor" ! ! note make sure there's a '034.jpg' valid jpeg in the current ! working directory USE: libexempi.ffi xmp_init "034.jpg" XMP_OPEN_FORUPDATE xmp_files_open_new "f" set "f" get xmp_files_get_new_xmp "xmp" set xmp_string_new "s" set "sdi" "sdi" f xmp_register_namespace "xmp" get "sdi" "license" "http://creativeuncommons.org/licenses/by-sa/2.5/" XMP_PROP_VALUE_IS_URI xmp_set_property "f" get "xmp" get xmp_files_put_xmp "f" get XMP_CLOSE_SAFEUPDATE xmp_files_close "xmp" get xmp_free xmp_terminate