Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3b32820

Browse files
committed
Added missing files
1 parent ac08ccf commit 3b32820

File tree

2 files changed

+170
-0
lines changed

2 files changed

+170
-0
lines changed
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
/*
2+
+---------------------------------------------------------------------------+
3+
| PHP Driver for MongoDB |
4+
+---------------------------------------------------------------------------+
5+
| Copyright 2016-2016 MongoDB, Inc. |
6+
| |
7+
| Licensed under the Apache License, Version 2.0 (the "License"); |
8+
| you may not use this file except in compliance with the License. |
9+
| You may obtain a copy of the License at |
10+
| |
11+
| http://www.apache.org/licenses/LICENSE-2.0 |
12+
| |
13+
| Unless required by applicable law or agreed to in writing, software |
14+
| distributed under the License is distributed on an "AS IS" BASIS, |
15+
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
16+
| See the License for the specific language governing permissions and |
17+
| limitations under the License. |
18+
+---------------------------------------------------------------------------+
19+
| Copyright (c) 2016-2016 MongoDB, Inc. |
20+
+---------------------------------------------------------------------------+
21+
*/
22+
23+
#ifdef HAVE_CONFIG_H
24+
# include "config.h"
25+
#endif
26+
27+
/* External libs */
28+
#include <bson.h>
29+
#include <mongoc.h>
30+
31+
/* PHP Core stuff */
32+
#include <php.h>
33+
#include <php_ini.h>
34+
#include <ext/standard/info.h>
35+
#include <Zend/zend_interfaces.h>
36+
#include <ext/spl/spl_iterators.h>
37+
/* Our Compatability header */
38+
#include "phongo_compat.h"
39+
40+
/* Our stuff */
41+
#include "php_phongo.h"
42+
#include "php_bson.h"
43+
44+
45+
PHONGO_API zend_class_entry *php_phongo_commandsubscriber_ce;
46+
47+
48+
49+
/* {{{ MongoDB\Monitoring\CommandSubscriber */
50+
51+
ZEND_BEGIN_ARG_INFO_EX(ai_CommandSubscriber_commandStarted, 0, 0, 1)
52+
ZEND_ARG_OBJ_INFO(0, event, MongoDB\\Driver\\Monitoring\\CommandStartedEvent, 0)
53+
ZEND_END_ARG_INFO()
54+
55+
ZEND_BEGIN_ARG_INFO_EX(ai_CommandSubscriber_commandSucceeded, 0, 0, 1)
56+
ZEND_ARG_OBJ_INFO(0, event, MongoDB\\Driver\\Monitoring\\CommandSucceededEvent, 0)
57+
ZEND_END_ARG_INFO()
58+
59+
ZEND_BEGIN_ARG_INFO_EX(ai_CommandSubscriber_commandFailed, 0, 0, 1)
60+
ZEND_ARG_OBJ_INFO(0, event, MongoDB\\Driver\\Monitoring\\CommandFailedEvent, 0)
61+
ZEND_END_ARG_INFO()
62+
63+
static zend_function_entry php_phongo_commandsubscriber_me[] = {
64+
ZEND_ABSTRACT_ME(CommandSubscriber, commandStarted, ai_CommandSubscriber_commandStarted)
65+
ZEND_ABSTRACT_ME(CommandSubscriber, commandSucceeded, ai_CommandSubscriber_commandSucceeded)
66+
ZEND_ABSTRACT_ME(CommandSubscriber, commandFailed, ai_CommandSubscriber_commandFailed)
67+
PHP_FE_END
68+
};
69+
70+
/* }}} */
71+
72+
73+
74+
/* {{{ PHP_MINIT_FUNCTION */
75+
PHP_MINIT_FUNCTION(CommandSubscriber)
76+
{
77+
zend_class_entry ce;
78+
(void)type;(void)module_number;
79+
80+
INIT_NS_CLASS_ENTRY(ce, "MongoDB\\Driver\\Monitoring", "CommandSubscriber", php_phongo_commandsubscriber_me);
81+
php_phongo_commandsubscriber_ce = zend_register_internal_interface(&ce TSRMLS_CC);
82+
zend_class_implements(php_phongo_commandsubscriber_ce TSRMLS_CC, 1, php_phongo_subscriber_ce);
83+
84+
return SUCCESS;
85+
}
86+
/* }}} */
87+
88+
89+
90+
/*
91+
* Local variables:
92+
* tab-width: 4
93+
* c-basic-offset: 4
94+
* End:
95+
* vim600: noet sw=4 ts=4 fdm=marker
96+
* vim<600: noet sw=4 ts=4
97+
*/

‎src/MongoDB/Monitoring/Subscriber.c‎

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
/*
2+
+---------------------------------------------------------------------------+
3+
| PHP Driver for MongoDB |
4+
+---------------------------------------------------------------------------+
5+
| Copyright 2016-2016 MongoDB, Inc. |
6+
| |
7+
| Licensed under the Apache License, Version 2.0 (the "License"); |
8+
| you may not use this file except in compliance with the License. |
9+
| You may obtain a copy of the License at |
10+
| |
11+
| http://www.apache.org/licenses/LICENSE-2.0 |
12+
| |
13+
| Unless required by applicable law or agreed to in writing, software |
14+
| distributed under the License is distributed on an "AS IS" BASIS, |
15+
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
16+
| See the License for the specific language governing permissions and |
17+
| limitations under the License. |
18+
+---------------------------------------------------------------------------+
19+
| Copyright (c) 2016-2016 MongoDB, Inc. |
20+
+---------------------------------------------------------------------------+
21+
*/
22+
23+
#ifdef HAVE_CONFIG_H
24+
# include "config.h"
25+
#endif
26+
27+
/* External libs */
28+
#include <bson.h>
29+
#include <mongoc.h>
30+
31+
/* PHP Core stuff */
32+
#include <php.h>
33+
#include <php_ini.h>
34+
#include <ext/standard/info.h>
35+
#include <Zend/zend_interfaces.h>
36+
#include <ext/spl/spl_iterators.h>
37+
/* Our Compatability header */
38+
#include "phongo_compat.h"
39+
40+
/* Our stuff */
41+
#include "php_phongo.h"
42+
#include "php_bson.h"
43+
44+
45+
PHONGO_API zend_class_entry *php_phongo_subscriber_ce;
46+
47+
/* {{{ MongoDB\Monitoring\Subscriber */
48+
static zend_function_entry php_phongo_subscriber_me[] = {
49+
PHP_FE_END
50+
};
51+
/* }}} */
52+
53+
/* {{{ PHP_MINIT_FUNCTION */
54+
PHP_MINIT_FUNCTION(Subscriber)
55+
{
56+
zend_class_entry ce;
57+
(void)type;(void)module_number;
58+
59+
INIT_NS_CLASS_ENTRY(ce, "MongoDB\\Driver\\Monitoring", "Subscriber", php_phongo_subscriber_me);
60+
php_phongo_subscriber_ce = zend_register_internal_interface(&ce TSRMLS_CC);
61+
62+
return SUCCESS;
63+
}
64+
/* }}} */
65+
66+
/*
67+
* Local variables:
68+
* tab-width: 4
69+
* c-basic-offset: 4
70+
* End:
71+
* vim600: noet sw=4 ts=4 fdm=marker
72+
* vim<600: noet sw=4 ts=4
73+
*/

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /