~ubuntu-branches/ubuntu/natty/raptor/natty-updates

« back to all changes in this revision

Viewing changes to src/raptor_serialize_dot.c

  • Committer: Bazaar Package Importer
  • Author(s): Dave Beckett
  • Date: 2008-04-01 22:06:01 UTC
  • mfrom: (1.1.8 upstream) (2.1.3 lenny)
  • Revision ID: james.westby@ubuntu.com-20080401220601-4h1tzxtwyziurokj
Tags: 1.4.17-1
* New upstream release
* Rebuild against libcurl4-gnutls-dev rather than libcurl4-openssl-dev
  (Closes: #463344)
* debian/control: depend on libtool 1.5 rather than older debian specific
  release
* debian/copyright: 2008
* debian/libraptor1-doc.doc-base: Use a correct Section:

Show diffs side-by-side

added added

removed removed

Lines of Context:
331
331
raptor_dot_serializer_init(raptor_serializer *serializer, const char *name)
332
332
{
333
333
  raptor_dot_context * context = (raptor_dot_context *)serializer->context;
334
 
  raptor_uri_handler *uri_handler;
 
334
  const raptor_uri_handler *uri_handler;
335
335
  void* uri_context;
336
336
 
337
337
  raptor_uri_get_handler(&uri_handler, &uri_context);
798
798
}
799
799
 
800
800
 
801
 
static void
 
801
static int
802
802
raptor_dot_serializer_register_factory(raptor_serializer_factory *factory)
803
803
{
804
804
  factory->context_length = sizeof(raptor_dot_context);
812
812
  factory->serialize_end       = raptor_dot_serializer_end;
813
813
  factory->finish_factory      = NULL;
814
814
  factory->terminate           = raptor_dot_serializer_terminate;
 
815
 
 
816
  return 0;
815
817
}
816
818
 
817
819
 
818
 
void
 
820
int
819
821
raptor_init_serializer_dot (void)
820
822
{
821
 
  raptor_serializer_register_factory("dot",
822
 
                                     "GraphViz DOT format",
823
 
                                     "text/x-graphviz",
824
 
                                     NULL,
825
 
                                     (const unsigned char*)"http://www.graphviz.org/doc/info/lang.html",
826
 
                                     &raptor_dot_serializer_register_factory);
 
823
  return raptor_serializer_register_factory("dot",
 
824
                                            "GraphViz DOT format",
 
825
                                            "text/x-graphviz",
 
826
                                            NULL,
 
827
                                            (const unsigned char*)"http://www.graphviz.org/doc/info/lang.html",
 
828
                                            &raptor_dot_serializer_register_factory);
827
829
}