[CDRIVER-1193] Expose mongoc_server_description_type_t enum Created: 06/Apr/16  Updated: 10/Aug/16  Resolved: 20/Apr/16

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.4.0

Type: Task Priority: Critical - P2
Reporter: Derick Rethans Assignee: Jeremy Mikola
Resolution: Won't Fix Votes: 0
Labels: api
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to PHPC-530 Document MongoDB\Driver\Server type c... Closed
related to PHPC-606 Use mongoc_server_description_t publi... Closed

 Description   

PHPC and HHVM currently depend on mongoc_server_description_type_t in their public APIs (this was an early design decision). In the interest of continuing to support this API in libmongoc 1.4.0, we propose the following:

  • mongoc_server_description_type_t enum is exposed
  • mongoc_server_description_type() returns the original enum value instead of a string


 Comments   
Comment by Jeremy Mikola [ 20/Apr/16 ]

Since new values cannot be appended to a publicized enum without breaking ABI, we opted to handle the mapping between libmongoc strings and integers manually in PHPC-606.

Comment by Jeremy Mikola [ 12/Apr/16 ]

https://github.com/mongodb/mongo-c-driver/pull/322

Generated at Wed Feb 07 21:11:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.