28
28
29
29
zend_class_entry * php_phongo_serverdescription_ce ;
30
30
31
+ /* Note: these constants are derived from _mongoc_topology_description_type,
32
+ * since mongoc_server_description_type_t is private. */
31
33
#define PHONGO_SERVER_UNKNOWN "Unknown"
32
34
#define PHONGO_SERVER_STANDALONE "Standalone"
33
35
#define PHONGO_SERVER_MONGOS "Mongos"
@@ -37,6 +39,7 @@ zend_class_entry* php_phongo_serverdescription_ce;
37
39
#define PHONGO_SERVER_RS_ARBITER "RSArbiter"
38
40
#define PHONGO_SERVER_RS_OTHER "RSOther"
39
41
#define PHONGO_SERVER_RS_GHOST "RSGhost"
42
+ #define PHONGO_SERVER_LOAD_BALANCER "LoadBalancer"
40
43
41
44
/* {{{ proto array MongoDB\Driver\ServerDescription::getHelloResponse()
42
45
Returns the most recent "hello" response */
@@ -269,6 +272,7 @@ void php_phongo_serverdescription_init_ce(INIT_FUNC_ARGS) /* {{{ */
269
272
zend_declare_class_constant_string (php_phongo_serverdescription_ce , ZEND_STRL ("TYPE_RS_ARBITER" ), PHONGO_SERVER_RS_ARBITER );
270
273
zend_declare_class_constant_string (php_phongo_serverdescription_ce , ZEND_STRL ("TYPE_RS_OTHER" ), PHONGO_SERVER_RS_OTHER );
271
274
zend_declare_class_constant_string (php_phongo_serverdescription_ce , ZEND_STRL ("TYPE_RS_GHOST" ), PHONGO_SERVER_RS_GHOST );
275
+ zend_declare_class_constant_string (php_phongo_serverdescription_ce , ZEND_STRL ("TYPE_LOAD_BALANCER" ), PHONGO_SERVER_LOAD_BALANCER );
272
276
} /* }}} */
273
277
274
278
/*
0 commit comments