mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-02 00:32:43 +00:00
Added a function to get the gstreamer version number at runtime.
Original commit message from CVS: Added a function to get the gstreamer version number at runtime.
This commit is contained in:
parent
2377b5d86d
commit
3b006eabcf
2 changed files with 24 additions and 0 deletions
22
gst/gst.c
22
gst/gst.c
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
#include "gst_private.h"
|
#include "gst_private.h"
|
||||||
|
|
||||||
|
#include "gstversion.h"
|
||||||
#include "gstcpu.h"
|
#include "gstcpu.h"
|
||||||
#include "gsttype.h"
|
#include "gsttype.h"
|
||||||
#include "gstplugin.h"
|
#include "gstplugin.h"
|
||||||
|
@ -308,3 +309,24 @@ gst_main_quit (void)
|
||||||
gtk_main_quit ();
|
gtk_main_quit ();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gst_version:
|
||||||
|
* @major: pointer to a guint to store the major version number
|
||||||
|
* @minor: pointer to a guint to store the minor version number
|
||||||
|
* @micro: pointer to a guint to store the micro version number
|
||||||
|
*
|
||||||
|
* Gets the version number of the GStreamer library
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
gst_version (guint *major, guint *minor, guint *micro)
|
||||||
|
{
|
||||||
|
g_return_if_fail (major);
|
||||||
|
g_return_if_fail (minor);
|
||||||
|
g_return_if_fail (micro);
|
||||||
|
|
||||||
|
*major = GST_VERSION_MAJOR;
|
||||||
|
*minor = GST_VERSION_MINOR;
|
||||||
|
*micro = GST_VERSION_MICRO;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,4 +28,6 @@
|
||||||
#define GST_VERSION_MINOR @GST_VERSION_MINOR@
|
#define GST_VERSION_MINOR @GST_VERSION_MINOR@
|
||||||
#define GST_VERSION_MICRO @GST_VERSION_MICRO@
|
#define GST_VERSION_MICRO @GST_VERSION_MICRO@
|
||||||
|
|
||||||
|
void gst_version (guint *major, guint *minor, guint *micro);
|
||||||
|
|
||||||
#endif /* __GST_H__ */
|
#endif /* __GST_H__ */
|
||||||
|
|
Loading…
Reference in a new issue