Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. Keyboard focusing on embed
  2. Embedded window seems to get the second-to-last window size?
  3. Per-embedded window surfaces
  4. Resizing the embedded window to something small when it is deactivated
  5.  
  6. OS_MESSAGE_EMBEDDED_WINDOW_ADDED uint64_t id
  7. OS_MESSAGE_EMBEDDED_WINDOW_REMOVED uint64_t id
  8. OS_MESSAGE_EMBEDDED_WINDOW_TITLE_CHANGED uint64_t id
  9.  
  10. OSEmbeddedWindowActivate OSHandle container, uint64_t id
  11. OSEmbeddedWindowRemove OSHandle container, uint64_t id
  12. OSEmbeddedWindowGetTitle OSHandle container, uint64_t id, char buffer[256]
  13. OSEmbeddedWindowSetContainer OSHandle oldContainer, uint64_t id, OSHandle newContainer
  14.  
  15.  
  16.  
  17. PROTOTYPE NETWORKING API
  18.  
  19. struct OSServer {
  20. OSGeneric context;
  21. };
  22.  
  23. struct OSConnection {
  24. const char *address;
  25. OSGeneric context;
  26. };
  27.  
  28. OSServer *OSServerCreate(int port, uint64_t flags, OSGeneric context);
  29. void OSServerDestroy(OSServer *server);
  30.  
  31. void OSConnectionCreate(const char *address, int port, uint64_t flags, OSGeneric context);
  32. void OSConnectionDestroy(OSConnection *connection);
  33. size_t OSConnectionWrite(OSConnection *connection, const void *data, size_t bytes);
  34. void OSConnectionSetTimeout(OSConnection *connection, int timeoutSeconds);
  35.  
  36. OS_MESSAGE_NEW_CONNECTION OSConnection *connection
  37. OS_MESSAGE_RECEIVE_DATA OSConnection *connection, const void *data, size_t bytes
  38. OS_MESSAGE_CONNECTION_CLOSED OSConnection *connection, OSConnectionClosed reason
  39. OS_MESSAGE_WRITE_BUFFER_EMPTY OSConnection *connection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement