Sha256: c03eec47c1eac06974b9f3b5ee58985fbe7b45c126bd0e8803a753c866a98659

Contents?: true

Size: 621 Bytes

Versions: 1

Compression:

Stored size: 621 Bytes

Contents

#include "sunscraper.h"

extern "C" {
  Sunscraper *sunscraper_create()
  {
    return new Sunscraper();
  }

  void sunscraper_load_html(Sunscraper *sunscraper, const char *html)
  {
    sunscraper->loadHtml(html);
  }

  void sunscraper_load_url(Sunscraper *sunscraper, const char *url)
  {
    sunscraper->loadUrl(url);
  }

  void sunscraper_wait(Sunscraper *sunscraper, unsigned timeout)
  {
    sunscraper->wait(timeout);
  }

  const char *sunscraper_fetch(Sunscraper *sunscraper)
  {
    return sunscraper->fetchAsCString();
  }

  void sunscraper_discard(Sunscraper *sunscraper)
  {
    delete sunscraper;
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sunscraper-1.0.0 ext/sunscraperexternal.cpp