host.h 641 B

1234567891011121314151617181920212223242526
  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. const char *keys; /* --keys: scripted headless keystrokes */
  11. int width;
  12. int height;
  13. };
  14. extern struct host_options host_opts;
  15. extern char host_root[1024];
  16. extern char host_repo[1024];
  17. extern char host_curl_bin[1024];
  18. /* Resolve the repo directory from /proc/self/exe, publish the profile root
  19. * and create its /share, /data and /ramfs/fonts layout. */
  20. int host_runtime_init(const char *argv0, const char *root);
  21. #endif