java: Remove overrides for overloaded methods.

These are now wrapped correctly without needing this.
This commit is contained in:
Martin Ling 2015-10-21 00:20:18 +01:00 committed by Uwe Hermann
parent f3095e7e2e
commit d4db558810
1 changed files with 0 additions and 66 deletions

View File

@ -193,72 +193,6 @@ MAP_COMMON(const sigrok::ConfigKey *, Glib::VariantBase, ConfigKey, Variant)
} }
} }
/* Support Driver.scan() with no arguments. */
%ignore sigrok::Driver::scan;
%extend sigrok::Driver {
std::vector<std::shared_ptr<sigrok::HardwareDevice> > scan()
{
std::map<const sigrok::ConfigKey *, Glib::VariantBase> options;
return $self->scan(options);
}
std::vector<std::shared_ptr<sigrok::HardwareDevice> > scan(
std::map<const sigrok::ConfigKey *, Glib::VariantBase> options)
{
return $self->scan(options);
}
}
/* Support InputFormat.create_input() with or without options. */
%ignore sigrok::InputFormat::create_input;
%extend sigrok::InputFormat {
std::shared_ptr<sigrok::Input> create_input()
{
return $self->create_input();
}
std::shared_ptr<sigrok::Input> create_input(
std::map<std::string, Glib::VariantBase> options)
{
return $self->create_input(options);
}
}
/* Support OutputFormat.create_output() with or without options. */
%ignore sigrok::OutputFormat::create_output;
%extend sigrok::OutputFormat {
std::shared_ptr<sigrok::Output> create_output(
std::shared_ptr<sigrok::Device> device)
{
return $self->create_output(device);
}
std::shared_ptr<sigrok::Output> create_output(
std::shared_ptr<sigrok::Device> device,
std::map<std::string, Glib::VariantBase> options)
{
return $self->create_output(device, options);
}
std::shared_ptr<sigrok::Output> create_output(
std::string filename,
std::shared_ptr<sigrok::Device> device)
{
return $self->create_output(filename, device);
}
std::shared_ptr<sigrok::Output> create_output(
std::string filename,
std::shared_ptr<sigrok::Device> device,
std::map<std::string, Glib::VariantBase> options)
{
return $self->create_output(filename, device, options);
}
}
/* Pass JNIEnv parameter to C++ extension methods requiring it. */ /* Pass JNIEnv parameter to C++ extension methods requiring it. */
%typemap(in, numinputs=0) JNIEnv * %{ %typemap(in, numinputs=0) JNIEnv * %{