Skip to content

Commit

Permalink
Add API for getting libgdiplus version
Browse files Browse the repository at this point in the history
  • Loading branch information
akoeplinger committed Sep 21, 2017
1 parent 8dfd73c commit 43f33e8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/general.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ GdipFree (void *ptr)
free (ptr);
}

/* libgdiplus-specific API */
WINGDIPAPI char*
GetLibgdiplusVersion ()
{
return g_strdup (VERSION);
}

/* Helpers */
GpStatus
gdip_get_status (cairo_status_t status)
Expand Down
3 changes: 3 additions & 0 deletions src/general.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,7 @@ void WINGDIPAPI GdiplusShutdown (ULONG_PTR token);
WINGDIPAPI void* GdipAlloc (size_t size);
WINGDIPAPI void GdipFree (void *ptr);

/* libgdiplus-specific API, useful for quirking buggy behavior in older versions */
WINGDIPAPI char* GetLibgdiplusVersion ();

#endif

0 comments on commit 43f33e8

Please sign in to comment.