src/bloblist.h
changeset 113 4bee48270834
parent 98 9e3d28932e7b
child 230 5b36a2663539
     1.1 --- a/src/bloblist.h	Sat Mar 14 11:28:14 2015 +0100
     1.2 +++ b/src/bloblist.h	Sun Mar 15 10:14:43 2015 +0100
     1.3 @@ -12,7 +12,7 @@
     1.4      size_t size;                    // size of blob
     1.5      char *mime_type;                // UTF-8 string of MIME type of blob or
     1.6                                      // NULL if unknown
     1.7 -    char *file_name;                // UTF-8 string of file name of blob or
     1.8 +    char *filename;                // UTF-8 string of file name of blob or
     1.9                                      // NULL if unknown
    1.10      struct _bloblist_t *next;
    1.11  } bloblist_t;
    1.12 @@ -24,17 +24,17 @@
    1.13  //      blob (in)       blob to add to the list
    1.14  //      size (in)       size of the blob
    1.15  //      mime_type (in)  MIME type of the blob data or NULL if unknown
    1.16 -//      file_name (in)  file name of origin of blob data or NULL if unknown
    1.17 +//      filename (in)  file name of origin of blob data or NULL if unknown
    1.18  //
    1.19  //  return value:
    1.20  //      pointer to new bloblist_t or NULL if out of memory
    1.21  //
    1.22  //  caveat:
    1.23 -//      the ownership of the blob goes to the bloblist; mime_type and file_name
    1.24 +//      the ownership of the blob goes to the bloblist; mime_type and filename
    1.25  //      are being copied, the originals remain in the ownership of the caller
    1.26  
    1.27  DYNAMIC_API bloblist_t *new_bloblist(char *blob, size_t size, const char *mime_type,
    1.28 -        const char *file_name);
    1.29 +        const char *filename);
    1.30  
    1.31  
    1.32  // free_bloblist() - free bloblist
    1.33 @@ -65,17 +65,17 @@
    1.34  //      blob (in)       blob
    1.35  //      size (in)       size of the blob
    1.36  //      mime_type (in)  MIME type of the blob or NULL if unknown
    1.37 -//      file_name (in)  file name of the blob or NULL if unknown
    1.38 +//      filename (in)  file name of the blob or NULL if unknown
    1.39  //
    1.40  //  return value:
    1.41  //      pointer to the last element of bloblist or NULL if out of memory
    1.42  //
    1.43  //  caveat:
    1.44 -//      the ownership of the blob goes to the bloblist; mime_type and file_name
    1.45 +//      the ownership of the blob goes to the bloblist; mime_type and filename
    1.46  //      are being copied, the originals remain in the ownership of the caller
    1.47  
    1.48  DYNAMIC_API bloblist_t *bloblist_add(bloblist_t *bloblist, char *blob, size_t size,
    1.49 -        const char *mime_type, const char *file_name);
    1.50 +        const char *mime_type, const char *filename);
    1.51  
    1.52  
    1.53  #ifdef __cplusplus