Changeset 2865 for libpipi


Ignore:
Timestamp:
Oct 4, 2008, 5:54:30 PM (12 years ago)
Author:
Sam Hocevar
Message:

pipi.c: add pipi_get_version().

Location:
libpipi/trunk/pipi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/pipi.c

    r2844 r2865  
    2626#include "pipi.h"
    2727#include "pipi_internals.h"
     28
     29/** \brief Return the \e libpipi version.
     30 *
     31 *  Return a read-only string with the \e libpipi version information.
     32 *
     33 *  This function never fails.
     34 *
     35 *  \return The \e libpipi version information.
     36 */
     37char const * pipi_get_version(void)
     38{
     39    return PACKAGE_VERSION;
     40}
    2841
    2942/*
  • libpipi/trunk/pipi/pipi.h

    r2857 r2865  
    115115extern pipi_pixel_t *pipi_get_color_from_string(const char* s);
    116116
     117char const * pipi_get_version(void);
    117118
    118119extern pipi_context_t *pipi_create_context(void);
Note: See TracChangeset for help on using the changeset viewer.