static void
_get_system_info (mongoc_metadata_t *metadata)
{
   metadata->os_type = _get_os_type ();
   metadata->os_name = _get_os_name ();
   metadata->os_architecture = _get_os_architecture ();
   metadata->os_version = _get_os_version ();
}
Esempio n. 2
0
static void
_get_system_info (mongoc_handshake_t *handshake)
{
   handshake->os_type = _get_os_type ();

#ifdef MONGOC_OS_IS_LINUX
   _mongoc_linux_distro_scanner_get_distro (&handshake->os_name,
                                            &handshake->os_version);
#else
   handshake->os_name = _get_os_name ();
   handshake->os_version = _get_os_version ();
#endif

   handshake->os_architecture = _get_os_architecture ();
}