Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function for querying the Ogg library's version #94

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions include/ogg/ogg.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ extern int ogg_page_packets(const ogg_page *og);

extern void ogg_packet_clear(ogg_packet *op);

extern const char *ogg_version_string(void);

#ifdef __cplusplus
}
Expand Down
6 changes: 6 additions & 0 deletions src/framing.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
#include <string.h>
#include <ogg/ogg.h>

#define GENERAL_VENDOR_STRING "Xiph.Org libOgg 1.3.6"

/* A complete description of Ogg framing exists in docs/framing.html */

int ogg_page_version(const ogg_page *og){
Expand Down Expand Up @@ -1006,6 +1008,10 @@ void ogg_packet_clear(ogg_packet *op) {
memset(op, 0, sizeof(*op));
}

const char *ogg_version_string(void){
return GENERAL_VENDOR_STRING;
}

#ifdef _V_SELFTEST
#include <stdio.h>

Expand Down