File: gcin-send.cpp

package info (click to toggle)
gcin 2.8.2%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 20,908 kB
  • ctags: 4,172
  • sloc: cpp: 30,707; ansic: 9,219; makefile: 626; sh: 518
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);
}