예제 #1
0
파일: CwmTcl.cpp 프로젝트: colinw7/Cwm
bool
cwm_get_window_value::
proc(int argc, const char **argv)
{
  string str = cwm_->sendClientMessage("get_window_value", argc, argv);

  setStringResult(str);

  return true;
}
예제 #2
0
파일: CwmTcl.cpp 프로젝트: colinw7/Cwm
bool
cwm_circulate_down::
proc(int argc, const char **argv)
{
  string str = cwm_->sendClientMessage("circulate_down", argc, argv);

  setStringResult(str);

  return true;
}
예제 #3
0
파일: CwmTcl.cpp 프로젝트: colinw7/Cwm
bool
cwm_focus_window::
proc(int argc, const char **argv)
{
  string str = cwm_->sendClientMessage("focus_window", argc, argv);

  setStringResult(str);

  return true;
}
예제 #4
0
파일: bindings.c 프로젝트: brltty/brltty
static int
getSessionStringProperty (
  Tcl_Interp *interp, BrlapiSession *session,
  int BRLAPI_STDCALL (*getProperty) (brlapi_handle_t *handle, char *buffer, size_t size)
) {
  size_t size = 0X10;

  while (1) {
    char buffer[size];
    int result = getProperty(session->handle, buffer, size);
    TEST_BRLAPI_OK(result);

    if (result <= size) {
      setStringResult(interp, buffer, result-1);
      return TCL_OK;
    }

    size = result;
  }
}