host.h 573 B

12345678910111213141516171819202122232425
  1. /* Shared state for the Linux browser harness. */
  2. #ifndef HOST_HOST_H
  3. #define HOST_HOST_H
  4. #include <stddef.h>
  5. struct host_options {
  6. const char *root;
  7. const char *shot;
  8. unsigned int wait_ms;
  9. int headless;
  10. int width;
  11. int height;
  12. };
  13. extern struct host_options host_opts;
  14. extern char host_root[1024];
  15. extern char host_repo[1024];
  16. extern char host_curl_bin[1024];
  17. /* Resolve the repo directory from /proc/self/exe, publish the profile root
  18. * and create its /share, /data and /ramfs/fonts layout. */
  19. int host_runtime_init(const char *argv0, const char *root);
  20. #endif