Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Gambier committed Oct 10, 2012
1 parent 4297fef commit d7add4b
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ libsvg2 - SVG Parser and renderer.
Description
-----------
libsvg2 is a SVG parser and renderer written in C.
It is hosted on GitHub at https://github.com/agambier/libsvg2.git

Dependencies
------------
Expand All @@ -12,5 +13,8 @@ Supported OSes
--------------
libsvg2 has been compiled and tested for the following OSes but it should
be easy to port it for other OSes.
- Linux
- Linux

History
-------
Created by Alexandre Gambier <alex.gambier.dev@gmail.com>.
19 changes: 19 additions & 0 deletions include/deftypes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#ifndef __deftypes_h__
#define __deftypes_h__

#if defined( __GNUC__ )
#include <inttypes.h>
typedef int8_t int8;
typedef uint8_t uint8;
typedef int16_t int16;
typedef uint16_t uint16;
typedef int32_t int32;
typedef uint32_t uint32;
typedef int64_t int64;
typedef uint64_t uint64;
#else
#error Please define type sizes according to your architecture and compiler.
#endif // __GNUC__


#endif // __deftypes_h__
13 changes: 13 additions & 0 deletions include/svg.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,24 @@
This program is distributed WITHOUT ANY WARRANTY.
FIXME: Finish this header...
FIXME: Use doxygen to generate API documenation.
*/

#ifndef __svg_h__
#define __svg_h__

#include "deftypes.h"

typedef struct _svgDrawing
{
char *szVersion;
char *szId;
double dWidth;
double dHeight;
} svgDrawing ;
typedef svgDrawing* svgDrawingP;

svgDrawingP svgParseFile( const char *szFile );
void svgFreeDrawing( svgDrawingP tDrawing );

#endif // __svg_h__
14 changes: 14 additions & 0 deletions sources/svg.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include "svg.h"

svgDrawingP svgParseFile( const char *szFile )
{
if( szFile==NULL )
return;
}

void svgFreeDrawing( svgDrawingP tDrawing )
{
if( tDrawing==NULL )
return;
}

0 comments on commit d7add4b

Please sign in to comment.