Changeset 2c7fdaa in mainline for uspace/lib
- Timestamp:
- 2015-02-18T02:19:30Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1e3375b, c0c38c7c
- Parents:
- d8bf1d8
- Location:
- uspace/lib
- Files:
-
- 4 edited
-
c/generic/io/window.c (modified) (1 diff)
-
c/include/io/window.h (modified) (2 diffs)
-
gui/window.c (modified) (3 diffs)
-
gui/window.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/window.c
rd8bf1d8 r2c7fdaa 40 40 #include <stdio.h> 41 41 42 int win_register(async_sess_t *sess, service_id_t *in, service_id_t *out) 42 int win_register(async_sess_t *sess, window_flags_t flags, service_id_t *in, 43 service_id_t *out) 43 44 { 44 45 async_exch_t *exch = async_exchange_begin(sess); 45 int ret = async_req_ 0_2(exch, WINDOW_REGISTER, in, out);46 int ret = async_req_1_2(exch, WINDOW_REGISTER, flags, in, out); 46 47 async_exchange_end(exch); 47 48 -
uspace/lib/c/include/io/window.h
rd8bf1d8 r2c7fdaa 42 42 #include <io/kbd_event.h> 43 43 #include <io/pos_event.h> 44 45 typedef enum { 46 WINDOW_MAIN = 1, 47 WINDOW_DECORATED = 2, 48 WINDOW_RESIZEABLE = 4 49 } window_flags_t; 44 50 45 51 typedef enum { … … 108 114 } window_event_t; 109 115 110 extern int win_register(async_sess_t *, service_id_t *, service_id_t *); 116 extern int win_register(async_sess_t *, window_flags_t, service_id_t *, 117 service_id_t *); 111 118 112 119 extern int win_get_event(async_sess_t *, window_event_t *); -
uspace/lib/gui/window.c
rd8bf1d8 r2c7fdaa 591 591 } 592 592 593 window_t *window_open(const char *winreg, bool is_main, bool is_decorated,593 window_t *window_open(const char *winreg, window_flags_t flags, 594 594 const char *caption) 595 595 { … … 598 598 return NULL; 599 599 600 win->is_main = is_main;601 win->is_decorated = is_decorated;600 win->is_main = flags & WINDOW_MAIN; 601 win->is_decorated = flags & WINDOW_DECORATED; 602 602 win->is_focused = true; 603 603 prodcons_initialize(&win->events); … … 632 632 service_id_t in_dsid; 633 633 service_id_t out_dsid; 634 rc = win_register(reg_sess, &in_dsid, &out_dsid);634 rc = win_register(reg_sess, flags, &in_dsid, &out_dsid); 635 635 async_hangup(reg_sess); 636 636 if (rc != EOK) { -
uspace/lib/gui/window.h
rd8bf1d8 r2c7fdaa 65 65 * Allocate all resources for new window and register it in the compositor. 66 66 * If the window is declared as main, its closure causes termination of the 67 * whole application. Note that opened window does not have any surface yet. */ 68 extern window_t *window_open(const char *, bool, bool, const char *); 67 * whole application. Note that opened window does not have any surface yet. 68 */ 69 extern window_t *window_open(const char *, window_flags_t, const char *); 69 70 70 71 /**
Note:
See TracChangeset
for help on using the changeset viewer.
