diff options
author | Ole Loots <ole@monochrom.net> | 2013-12-29 22:23:51 +0100 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2013-12-29 22:23:51 +0100 |
commit | e154748542e42d0f3add5812791219ee174f117c (patch) | |
tree | 06cd77490920f6a5a08918d03966ea8a34561eff /atari/gemtk/utils.c | |
parent | d451b543c6a0ea7face2d5344de870d88ee0807a (diff) | |
download | netsurf-e154748542e42d0f3add5812791219ee174f117c.tar.gz netsurf-e154748542e42d0f3add5812791219ee174f117c.tar.bz2 |
Do not use tmpnam() but a custom function.
Diffstat (limited to 'atari/gemtk/utils.c')
-rw-r--r-- | atari/gemtk/utils.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/atari/gemtk/utils.c b/atari/gemtk/utils.c index 20fe5d424..aac293d21 100644 --- a/atari/gemtk/utils.c +++ b/atari/gemtk/utils.c @@ -95,10 +95,38 @@ void gemtk_clip_grect(VdiHdl vh, GRECT *rect) vs_clip_pxy(vh, pxy); } +/** Send an Message to a GUIWIN using AES message pipe +* \param win the GUIWIN which shall receive the message +* \param msg_type the WM_ message definition +* \param a the 4th parameter to appl_write +* \param b the 5th parameter to appl_write +* \param c the 6th parameter to appl_write +* \param d the 7th parameter to appl_write +*/ +void gemtk_send_msg(short msg_type, short data2, short data3, short data4, + short data5, short data6, short data7) +{ + short msg[8]; + + msg[0] = msg_type; + msg[1] = gl_apid; + msg[2] = data2; + msg[3] = data3; + msg[4] = data4; + msg[5] = data5; + msg[6] = data6; + msg[7] = data7; + + appl_write(gl_apid, 16, &msg); +} + + void gemtk_wind_get_str(short aes_handle, short mode, char *str, int len) { char tmp_str[255]; + // TODO: remove or implement function + if(len>255) { len = 255; } |