예제 #1
0
void java_bytecode_parsert::rmethods(classt &parsed_class)
{
  u2 methods_count=read_u2();

  for(std::size_t j=0; j<methods_count; j++)
    rmethod(parsed_class);
}
예제 #2
0
sampleAPI::sampleAPI(const FB::BrowserHostPtr& host) : m_host(host)
{
  printf("sampleAPI instance\n");
  
  // Register exported methods
  rmethod(test);
  
  // Register properties
  rproperty(x);
}
예제 #3
0
void RDynamicSlot::call(QObject *sender, void **arguments) {
  Q_UNUSED(sender);
  SEXP user_data = object->userData(), function = object->function();
  MocMethod method = object->method();
  QVector<SmokeType> stackTypes = method.types();
  MocStack mocStack = MocStack(arguments, stackTypes.size());
  SmokeStack smokeStack = mocStack.toSmoke(stackTypes);
  RMethod rmethod(NULL, NULL, function, stackTypes, user_data);
  rmethod.invoke(NULL, smokeStack.items());
  mocStack.returnFromSmoke(smokeStack, stackTypes[0]);
}
예제 #4
0
VideoWindowAPI::VideoWindowAPI(const linphonePtr& plugin, const FB::BrowserHostPtr& host) :
    m_plugin(plugin), m_host(host)
{
  printf("VideoWindowAPI instance\n");

  // Register exported methods
  rmethod(test);

  // Register properties
  rproperty(x);
  rpropertyg(pluginWindowId);
}