use type when looking for a session

ulab-original
jsorg71 15 years ago
parent 2a4515783a
commit 52af655800

@ -41,7 +41,7 @@ scp_v0_process(struct SCP_CONNECTION* c, struct SCP_SESSION* s)
if (data)
{
s_item = session_get_bydata(s->username, s->width, s->height, s->bpp);
s_item = session_get_bydata(s->username, s->width, s->height, s->bpp, s->type);
if (s_item != 0)
{
display = s_item->display;

@ -51,7 +51,7 @@ static int g_sync_result;
/******************************************************************************/
struct session_item* DEFAULT_CC
session_get_bydata(char* name, int width, int height, int bpp)
session_get_bydata(char* name, int width, int height, int bpp, int type)
{
struct session_chain* tmp;
@ -65,7 +65,8 @@ session_get_bydata(char* name, int width, int height, int bpp)
if (g_strncmp(name, tmp->item->name, 255) == 0 &&
tmp->item->width == width &&
tmp->item->height == height &&
tmp->item->bpp == bpp)
tmp->item->bpp == bpp &&
tmp->item->type == type)
{
/*THREAD-FIX release chain lock */
lock_chain_release();

@ -90,9 +90,9 @@ struct session_chain
*
*/
struct session_item* DEFAULT_CC
session_get_bydata(char* name, int width, int height, int bpp);
session_get_bydata(char* name, int width, int height, int bpp, int type);
#ifndef session_find_item
#define session_find_item(a, b, c, d) session_get_bydata(a, b, c, d);
#define session_find_item(a, b, c, d, e) session_get_bydata(a, b, c, d, e);
#endif
/**

Loading…
Cancel
Save