| 404 * Encode a "get avatar" chunk. (Chunk type 14) |
404 * Encode a "get avatar" chunk. (Chunk type 14) |
| 405 * |
405 * |
| 406 * @param chunkdata Chunked-data buffer |
406 * @param chunkdata Chunked-data buffer |
| 407 * @param mxitId The username who's avatar to download |
407 * @param mxitId The username who's avatar to download |
| 408 * @param avatarId The Id of the avatar image (as string) |
408 * @param avatarId The Id of the avatar image (as string) |
| 409 * @param imgsize The resolution of the avatar image |
|
| 410 * @return The number of bytes encoded in the buffer |
409 * @return The number of bytes encoded in the buffer |
| 411 */ |
410 */ |
| 412 int mxit_chunk_create_get_avatar( char* chunkdata, const char* mxitId, const char* avatarId, unsigned int imgsize ) |
411 int mxit_chunk_create_get_avatar( char* chunkdata, const char* mxitId, const char* avatarId ) |
| 413 { |
412 { |
| 414 int pos = 0; |
413 int pos = 0; |
| 415 |
414 |
| 416 /* number of avatars [4 bytes] */ |
415 /* number of avatars [4 bytes] */ |
| 417 pos += add_int32( &chunkdata[pos], 1 ); |
416 pos += add_int32( &chunkdata[pos], 1 ); |