The Following 11 Users Say Thank You to Android_808 For This Useful Post: | ||
![]() |
2017-03-04
, 16:38
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#152
|
The Following 3 Users Say Thank You to freemangordon For This Useful Post: | ||
![]() |
2017-03-04
, 21:21
|
Posts: 1,203 |
Thanked: 3,027 times |
Joined on Dec 2010
|
#153
|
GFile * g_file_new_for_path (const char *path);
GMount * g_file_find_enclosing_mount (GFile *file, GCancellable *cancellable, GError **error);
void g_file_find_enclosing_mount_async (GFile *file, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data);
GVolume * g_mount_get_volume (GMount *mount);
The Following 5 Users Say Thank You to Android_808 For This Useful Post: | ||
![]() |
2017-03-04
, 21:42
|
Posts: 1,203 |
Thanked: 3,027 times |
Joined on Dec 2010
|
#154
|
The Following 6 Users Say Thank You to Android_808 For This Useful Post: | ||
![]() |
2017-03-04
, 22:26
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#155
|
How about:
Create a GFile
Get the enclosing mount for that GFileCode:GFile * g_file_new_for_path (const char *path);
orCode:GMount * g_file_find_enclosing_mount (GFile *file, GCancellable *cancellable, GError **error);
Then get the volume from the mountCode:void g_file_find_enclosing_mount_async (GFile *file, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data);
Code:GVolume * g_mount_get_volume (GMount *mount);
The Following 5 Users Say Thank You to freemangordon For This Useful Post: | ||
![]() |
2017-03-04
, 23:06
|
Posts: 1,203 |
Thanked: 3,027 times |
Joined on Dec 2010
|
#156
|
The Following 5 Users Say Thank You to Android_808 For This Useful Post: | ||
![]() |
2017-03-04
, 23:26
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#157
|
![]() |
2017-03-04
, 23:49
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#158
|
The Following 4 Users Say Thank You to freemangordon For This Useful Post: | ||
![]() |
2017-03-05
, 09:21
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#159
|
The Following 7 Users Say Thank You to freemangordon For This Useful Post: | ||
![]() |
2017-04-06
, 15:36
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#160
|
The Following 10 Users Say Thank You to freemangordon For This Useful Post: | ||
Instructions for building so that tests can run using the module are in the commit message:
https://github.com/android-808/hildo...9a7cfe8625f3c1