Skip to content

Commit e8e09b6

Browse files
committed
stream-socket: add type definition for stream socket for consistency.
1 parent b9c668a commit e8e09b6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/mongoc/mongoc-stream-socket.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
#define MONGOC_LOG_DOMAIN "stream"
2525

2626

27-
typedef struct
27+
struct _mongoc_stream_socket_t
2828
{
2929
mongoc_stream_t vtable;
3030
mongoc_socket_t *sock;
31-
} mongoc_stream_socket_t;
31+
};
3232

3333

3434
static BSON_INLINE int64_t

src/mongoc/mongoc-stream-socket.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
BSON_BEGIN_DECLS
3232

3333

34+
typedef struct _mongoc_stream_socket_t mongoc_stream_socket_t;
35+
36+
3437
mongoc_stream_t *mongoc_stream_socket_new (mongoc_socket_t *socket);
3538

3639

0 commit comments

Comments
 (0)