You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
711 B

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <stdint.h>
  4. #include <dlfcn.h>
  5. int main() {
  6. uint64_t (*ext_get_ahash)(const char *);
  7. uint64_t (*ext_get_dhash)(const char *);
  8. uint64_t (*ext_get_phash)(const char *);
  9. imglib = dlopen("./libpihash.so", RTLD_LAZY);
  10. if ( imglib != NULL ) {
  11. }
  12. printf("Large_Test_AHash: ", largeA);
  13. printf("Large_Test_DHash: ", largeD);
  14. printf("Large_Test_PHash: ", largeP);
  15. printf("Medium_Test_AHash: ", mediumA);
  16. printf("Medium_Test_DHash: ", mediumD);
  17. printf("Medium_Test_PHash: ", mediumP);
  18. printf("Small_Test_AHash: ", smallA);
  19. printf("Small_Test_DHash: ", smallD);
  20. printf("Small_Test_PHash: ", smallP);
  21. }