mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-15 00:11:08 +02:00
added nginx/module version to xml & xsl
This commit is contained in:
parent
f599c70568
commit
8856d11dd9
|
@ -7,7 +7,9 @@
|
|||
#include <ngx_config.h>
|
||||
#include <ngx_core.h>
|
||||
#include <ngx_http.h>
|
||||
#include <nginx.h>
|
||||
#include "ngx_rtmp.h"
|
||||
#include "ngx_rtmp_version.h"
|
||||
#include "ngx_rtmp_live_module.h"
|
||||
#include "ngx_rtmp_play_module.h"
|
||||
#include "ngx_rtmp_codec_module.h"
|
||||
|
@ -651,7 +653,11 @@ ngx_rtmp_stat_handler(ngx_http_request_t *r)
|
|||
NGX_RTMP_STAT_L("<rtmp>\r\n");
|
||||
|
||||
#ifdef NGINX_VERSION
|
||||
NGX_RTMP_STAT_L("<version>" NGINX_VERSION "</version>\r\n");
|
||||
NGX_RTMP_STAT_L("<nginx_version>" NGINX_VERSION "</nginx_version>\r\n");
|
||||
#endif
|
||||
|
||||
#ifdef NGINX_RTMP_VERSION
|
||||
NGX_RTMP_STAT_L("<nginx_rtmp_version>" NGINX_RTMP_VERSION "</nginx_rtmp_version>\r\n");
|
||||
#endif
|
||||
|
||||
#ifdef NGX_COMPILER
|
||||
|
|
15
ngx_rtmp_version.h
Normal file
15
ngx_rtmp_version.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
|
||||
/*
|
||||
* Copyright (C) Roman Arutyunyan
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _NGX_RTMP_VERSION_H_INCLUDED_
|
||||
#define _NGX_RTMP_VERSION_H_INCLUDED_
|
||||
|
||||
|
||||
#define nginx_rtmp_version 1000005
|
||||
#define NGINX_RTMP_VERSION "1.0.5"
|
||||
|
||||
|
||||
#endif /* _NGX_RTMP_VERSION_H_INCLUDED_ */
|
11
stat.xsl
11
stat.xsl
|
@ -1,5 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
|
||||
<!--
|
||||
Copyright (C) Roman Arutyunyan
|
||||
-->
|
||||
|
||||
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
|
||||
|
||||
|
@ -11,8 +17,9 @@
|
|||
<body>
|
||||
<xsl:apply-templates select="rtmp"/>
|
||||
<hr/>
|
||||
Generated by <a href='https://github.com/arut/nginx-rtmp-module'>NGINX RTMP module</a>,
|
||||
<a href="http://nginx.com">NGINX</a> <xsl:value-of select="/rtmp/version"/>,
|
||||
Generated by <a href='https://github.com/arut/nginx-rtmp-module'>
|
||||
nginx-rtmp-module</a> <xsl:value-of select="/rtmp/nginx_rtmp_version"/>,
|
||||
<a href="http://nginx.org">nginx</a> <xsl:value-of select="/rtmp/nginx_version"/>,
|
||||
pid <xsl:value-of select="/rtmp/pid"/>,
|
||||
built <xsl:value-of select="/rtmp/built"/> <xsl:value-of select="/rtmp/compiler"/>
|
||||
</body>
|
||||
|
|
Loading…
Reference in a new issue