File: gcin-send.cpp

package info (click to toggle)
gcin 2.9.4%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,796 kB
  • sloc: cpp: 34,326; ansic: 9,319; makefile: 658; sh: 556
file content (18 lines) | stat: -rw-r--r-- 358 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "gcin.h"
#include "gcin-im-client.h"

#if UNIX
void send_gcin_message(Display *dpy, char *s)
#else
void send_gcin_message(char *s)
#endif
{
#if UNIX
  GCIN_client_handle *handle = gcin_im_client_open(dpy);
#else
  GCIN_client_handle *handle = gcin_im_client_open(NULL);
#endif
  gcin_im_client_message(handle, s);

  gcin_im_client_close(handle);
}