SYNOPSIS

const char *   mongoc_gridfs_file_get_md5          (mongoc_gridfs_file_t *file);
const char *   mongoc_gridfs_file_get_filename     (mongoc_gridfs_file_t *file);
const char *   mongoc_gridfs_file_get_content_type (mongoc_gridfs_file_t *file);
const bson_t * mongoc_gridfs_file_get_aliases      (mongoc_gridfs_file_t *file);
const bson_t * mongoc_gridfs_file_get_metadata     (mongoc_gridfs_file_t *file);
int64_t        mongoc_gridfs_file_get_length       (mongoc_gridfs_file_t *file);
int32_t        mongoc_gridfs_file_get_chunk_size   (mongoc_gridfs_file_t *file);
int64_t        mongoc_gridfs_file_get_upload_date  (mongoc_gridfs_file_t *file);

void mongoc_gridfs_file_set_md5          (mongoc_gridfs_file_t *file, const char *str);
void mongoc_gridfs_file_set_filename     (mongoc_gridfs_file_t *file, const char *str);
void mongoc_gridfs_file_set_content_type (mongoc_gridfs_file_t *file, const char *str);
void mongoc_gridfs_file_set_aliases      (mongoc_gridfs_file_t *file, const bson_t *bson);
void mongoc_gridfs_file_set_metadata     (mongoc_gridfs_file_t *file, const bson_t *bson);

DESCRIPTION

The mongoc_gridfs_file_get*()_ functions get attributes from the gridfs file.

The mongoc_gridfs_file_set*()_ functions set attributes from the gridfs file.

RETURN VALUE

The mongoc_gridfs_file_get*()_ functions return their attribute.

The mongoc_gridfs_file_set*()_ functions set their attribute.

ERRORS

No errors are defined.

SEE ALSO

AUTHORS

This page was written by MongoDB Inc.