Lucas Stadler
|
b030f12a8e
Merge the two `impl` blocks for PNGImage
|
10 anni fa |
Lucas Stadler
|
9716e26c45
Put message conversion into a method
|
10 anni fa |
Lucas Stadler
|
6d9d9d168c
Use an iterator to convert the message
|
10 anni fa |
Lucas Stadler
|
f7ec2ddc92
Rename png_image to PNGImage
|
10 anni fa |
Lucas Stadler
|
e158a91301
Use c_uint instead of uint32_t
|
10 anni fa |
Lucas Stadler
|
53d3c41d97
Print empty line between the two examples
|
10 anni fa |
Lucas Stadler
|
8e800af3c8
Remove debug println
|
10 anni fa |
Lucas Stadler
|
ddca15b9cd
Support getting the filename from the cmdline
|
10 anni fa |
Lucas Stadler
|
e658f0c907
Move ffi call into a method on png_image
|
10 anni fa |
Lucas Stadler
|
8c7c2d2feb
Move png_image initialization into a function
|
10 anni fa |
Lucas Stadler
|
fb389a2eb2
Implement Display for png_image
|
10 anni fa |
Lucas Stadler
|
3943b76f19
Initialize the `.version` field correctly
|
10 anni fa |
Lucas Stadler
|
a15fe17b56
Use a null-terminated string for the file name
|
10 anni fa |
Lucas Stadler
|
6a04b2debb
Add a printing function that displays png_image
|
10 anni fa |
Lucas Stadler
|
e5ac979f6a
Use libc::c_void for the opaque struct
|
10 anni fa |
Lucas Stadler
|
a71e0aac9f
Fix the opaque type
|
10 anni fa |
Lucas Stadler
|
24965887e1
Use `zeroed` instead of `unitialized`.
|
10 anni fa |
Lucas Stadler
|
6e15c8137c
Add work-in-progress png example
|
10 anni fa |
Lucas Stadler
|
416aa59f35
Initial commit: Hello FFI in Rust!
|
10 anni fa |