commit 0eeb3d5699cce34743748719ef3c7fbb062cb0e8 Author: Alan McGovern <alan.mcgov...@gmail.com> Date: Sun Jun 13 14:20:40 2010 +0100
Make all the P/Invokes internal instead of public. Signed-off-by: Nathaniel McCallum <nathan...@natemccallum.com> bindings/mono/libgpod-sharp/Artwork.cs | 16 ++++++------ bindings/mono/libgpod-sharp/Chapter.cs | 6 ++-- bindings/mono/libgpod-sharp/ChapterData.cs | 12 ++++---- bindings/mono/libgpod-sharp/Device.cs | 26 ++++++++++---------- bindings/mono/libgpod-sharp/ITDB.cs | 36 ++++++++++++++-------------- bindings/mono/libgpod-sharp/IpodInfo.cs | 6 ++-- bindings/mono/libgpod-sharp/PhotoAlbum.cs | 6 ++-- bindings/mono/libgpod-sharp/PhotoDB.cs | 26 ++++++++++---------- bindings/mono/libgpod-sharp/Playlist.cs | 10 ++++---- bindings/mono/libgpod-sharp/Thumbnail.cs | 8 +++--- bindings/mono/libgpod-sharp/Track.cs | 18 +++++++------- 11 files changed, 85 insertions(+), 85 deletions(-) --- diff --git a/bindings/mono/libgpod-sharp/Artwork.cs b/bindings/mono/libgpod-sharp/Artwork.cs index b10b184..f1644d1 100644 --- a/bindings/mono/libgpod-sharp/Artwork.cs +++ b/bindings/mono/libgpod-sharp/Artwork.cs @@ -38,28 +38,28 @@ namespace GPod { // Ignore the rest [DllImport ("gpod")] - public static extern IntPtr itdb_artwork_new(); + internal static extern IntPtr itdb_artwork_new(); [DllImport ("gpod")] - public static extern IntPtr itdb_artwork_duplicate(HandleRef device); + internal static extern IntPtr itdb_artwork_duplicate(HandleRef device); [DllImport ("gpod")] - public static extern void itdb_artwork_free(HandleRef artwork); + internal static extern void itdb_artwork_free(HandleRef artwork); [DllImport ("gpod")] - public static extern IntPtr itdb_artwork_get_pixbuf(HandleRef device, HandleRef artwork, int width, int height); + internal static extern IntPtr itdb_artwork_get_pixbuf(HandleRef device, HandleRef artwork, int width, int height); [DllImport ("gpod")] - public static extern bool itdb_artwork_set_thumbnail(HandleRef artwork, string filename, int rotation, out IntPtr gerror); + internal static extern bool itdb_artwork_set_thumbnail(HandleRef artwork, string filename, int rotation, out IntPtr gerror); [DllImport ("gpod")] - public static extern bool itdb_artwork_set_thumbnail_from_data(HandleRef artwork, IntPtr image_data, int image_data_len, int rotation, out IntPtr gerror); + internal static extern bool itdb_artwork_set_thumbnail_from_data(HandleRef artwork, IntPtr image_data, int image_data_len, int rotation, out IntPtr gerror); [DllImport ("gpod")] - public static extern bool itdb_artwork_set_thumbnail_from_pixbuf(HandleRef artwork, IntPtr pixbuf, int rotation, out IntPtr gerror); + internal static extern bool itdb_artwork_set_thumbnail_from_pixbuf(HandleRef artwork, IntPtr pixbuf, int rotation, out IntPtr gerror); [DllImport ("gpod")] - public static extern void itdb_artwork_remove_thumbnails(HandleRef artwork); + internal static extern void itdb_artwork_remove_thumbnails(HandleRef artwork); } } diff --git a/bindings/mono/libgpod-sharp/Chapter.cs b/bindings/mono/libgpod-sharp/Chapter.cs index a2cd9e6..ed99431 100644 --- a/bindings/mono/libgpod-sharp/Chapter.cs +++ b/bindings/mono/libgpod-sharp/Chapter.cs @@ -29,13 +29,13 @@ namespace GPod { // Ignore the rest [DllImport ("gpod")] - public static extern IntPtr itdb_chapter_new(); + internal static extern IntPtr itdb_chapter_new(); [DllImport ("gpod")] - public static extern IntPtr itdb_chapter_duplicate(HandleRef chapter); + internal static extern IntPtr itdb_chapter_duplicate(HandleRef chapter); [DllImport ("gpod")] - public static extern void itdb_chapter_free(HandleRef chapter); + internal static extern void itdb_chapter_free(HandleRef chapter); } } diff --git a/bindings/mono/libgpod-sharp/ChapterData.cs b/bindings/mono/libgpod-sharp/ChapterData.cs index bdc6310..51efcfd 100644 --- a/bindings/mono/libgpod-sharp/ChapterData.cs +++ b/bindings/mono/libgpod-sharp/ChapterData.cs @@ -29,22 +29,22 @@ namespace GPod { // Ignore the rest [DllImport ("gpod")] - public static extern IntPtr itdb_chapterdata_new(); + internal static extern IntPtr itdb_chapterdata_new(); [DllImport ("gpod")] - public static extern bool itdb_chapterdata_add_chapter(HandleRef chapterdata, uint startpos, string chaptertitle); + internal static extern bool itdb_chapterdata_add_chapter(HandleRef chapterdata, uint startpos, string chaptertitle); [DllImport ("gpod")] - public static extern IntPtr itdb_chapterdata_duplicate(HandleRef chapterdata); + internal static extern IntPtr itdb_chapterdata_duplicate(HandleRef chapterdata); [DllImport ("gpod")] - public static extern void itdb_chapterdata_unlink_chapter(HandleRef chapterdata, HandleRef chapter); + internal static extern void itdb_chapterdata_unlink_chapter(HandleRef chapterdata, HandleRef chapter); [DllImport ("gpod")] - public static extern void itdb_chapterdata_remove_chapters(HandleRef chapterdata); + internal static extern void itdb_chapterdata_remove_chapters(HandleRef chapterdata); [DllImport ("gpod")] - public static extern void itdb_chapterdata_free(HandleRef chapterdata); + internal static extern void itdb_chapterdata_free(HandleRef chapterdata); } } diff --git a/bindings/mono/libgpod-sharp/Device.cs b/bindings/mono/libgpod-sharp/Device.cs index 3e162a7..e415e67 100644 --- a/bindings/mono/libgpod-sharp/Device.cs +++ b/bindings/mono/libgpod-sharp/Device.cs @@ -28,43 +28,43 @@ namespace GPod { // Ignore the rest [DllImport ("gpod")] - public static extern IntPtr itdb_device_new(); + internal static extern IntPtr itdb_device_new(); [DllImport ("gpod")] - public static extern void itdb_device_free(HandleRef device); + internal static extern void itdb_device_free(HandleRef device); [DllImport ("gpod")] - public static extern void itdb_device_set_mountpoint(HandleRef device, string mountpoint); + internal static extern void itdb_device_set_mountpoint(HandleRef device, string mountpoint); [DllImport ("gpod")] - public static extern bool itdb_device_supports_artwork(HandleRef device); + internal static extern bool itdb_device_supports_artwork(HandleRef device); [DllImport ("gpod")] - public static extern bool itdb_device_supports_chapter_image(HandleRef device); + internal static extern bool itdb_device_supports_chapter_image(HandleRef device); [DllImport ("gpod")] - public static extern bool itdb_device_supports_photo(HandleRef device); + internal static extern bool itdb_device_supports_photo(HandleRef device); [DllImport ("gpod")] - public static extern bool itdb_device_supports_podcast(HandleRef device); + internal static extern bool itdb_device_supports_podcast(HandleRef device); [DllImport ("gpod")] - public static extern bool itdb_device_supports_video(HandleRef device); + internal static extern bool itdb_device_supports_video(HandleRef device); [DllImport ("gpod")] - public static extern IntPtr itdb_device_get_ipod_info(HandleRef device); + internal static extern IntPtr itdb_device_get_ipod_info(HandleRef device); [DllImport ("gpod")] - public static extern bool itdb_device_read_sysinfo(HandleRef device); + internal static extern bool itdb_device_read_sysinfo(HandleRef device); [DllImport ("gpod")] - public static extern string itdb_device_get_sysinfo(HandleRef device, string field); + internal static extern string itdb_device_get_sysinfo(HandleRef device, string field); [DllImport ("gpod")] - public static extern void itdb_device_set_sysinfo(HandleRef device, string field, string value); + internal static extern void itdb_device_set_sysinfo(HandleRef device, string field, string value); [DllImport ("gpod")] - public static extern bool itdb_device_write_sysinfo(HandleRef device, out IntPtr gerror); + internal static extern bool itdb_device_write_sysinfo(HandleRef device, out IntPtr gerror); } } diff --git a/bindings/mono/libgpod-sharp/ITDB.cs b/bindings/mono/libgpod-sharp/ITDB.cs index 8392a16..04426f9 100644 --- a/bindings/mono/libgpod-sharp/ITDB.cs +++ b/bindings/mono/libgpod-sharp/ITDB.cs @@ -32,58 +32,58 @@ namespace GPod { // Ignore everything else [DllImport ("gpod")] - public static extern IntPtr itdb_new(); + internal static extern IntPtr itdb_new(); [DllImport ("gpod")] - public static extern string itdb_cp_get_dest_filename (IntPtr track, string mountpoint, string filename, ref IntPtr error); + internal static extern string itdb_cp_get_dest_filename (IntPtr track, string mountpoint, string filename, ref IntPtr error); [DllImport ("gpod")] - public static extern bool itdb_cp_track_to_ipod (HandleRef track, string filename, ref IntPtr error); + internal static extern bool itdb_cp_track_to_ipod (HandleRef track, string filename, ref IntPtr error); [DllImport ("gpod")] - public static extern void itdb_free(HandleRef itdb); + internal static extern void itdb_free(HandleRef itdb); [DllImport ("gpod")] - public static extern string itdb_get_music_dir (string mountpoint); + internal static extern string itdb_get_music_dir (string mountpoint); [DllImport ("gpod")] - public static extern IntPtr itdb_parse(string mountpoint, out IntPtr gerror); + internal static extern IntPtr itdb_parse(string mountpoint, out IntPtr gerror); [DllImport ("gpod")] - public static extern bool itdb_write(HandleRef itdb, out IntPtr gerror); + internal static extern bool itdb_write(HandleRef itdb, out IntPtr gerror); [DllImport ("gpod")] - public static extern void itdb_set_mountpoint(HandleRef itdb, string mountpoint); + internal static extern void itdb_set_mountpoint(HandleRef itdb, string mountpoint); [DllImport ("gpod")] - public static extern IntPtr itdb_get_mountpoint(HandleRef itdb); + internal static extern IntPtr itdb_get_mountpoint(HandleRef itdb); [DllImport ("gpod")] - public static extern bool itdb_init_ipod(string mountpoint, string model_number, string ipod_name, out IntPtr gerror); + internal static extern bool itdb_init_ipod(string mountpoint, string model_number, string ipod_name, out IntPtr gerror); [DllImport ("gpod")] - public static extern uint itdb_tracks_number_nontransferred(HandleRef itdb); + internal static extern uint itdb_tracks_number_nontransferred(HandleRef itdb); [DllImport ("gpod")] - public static extern void itdb_track_add(HandleRef itdb, HandleRef track, int pos); + internal static extern void itdb_track_add(HandleRef itdb, HandleRef track, int pos); [DllImport ("gpod")] - public static extern void itdb_track_unlink(HandleRef track); + internal static extern void itdb_track_unlink(HandleRef track); [DllImport ("gpod")] - public static extern void itdb_playlist_add(HandleRef itdb, HandleRef pl, int pos); + internal static extern void itdb_playlist_add(HandleRef itdb, HandleRef pl, int pos); [DllImport ("gpod")] - public static extern void itdb_playlist_unlink(HandleRef pl); + internal static extern void itdb_playlist_unlink(HandleRef pl); [DllImport ("gpod")] - public static extern IntPtr itdb_playlist_mpl(HandleRef itdb); + internal static extern IntPtr itdb_playlist_mpl(HandleRef itdb); [DllImport ("gpod")] - public static extern IntPtr itdb_playlist_podcasts(HandleRef itdb); + internal static extern IntPtr itdb_playlist_podcasts(HandleRef itdb); [DllImport ("gpod")] - public static extern IntPtr itdb_playlist_by_name(HandleRef itdb, string name); + internal static extern IntPtr itdb_playlist_by_name(HandleRef itdb, string name); } } diff --git a/bindings/mono/libgpod-sharp/IpodInfo.cs b/bindings/mono/libgpod-sharp/IpodInfo.cs index 0bc0fb1..d048f61 100644 --- a/bindings/mono/libgpod-sharp/IpodInfo.cs +++ b/bindings/mono/libgpod-sharp/IpodInfo.cs @@ -30,13 +30,13 @@ namespace GPod { // Ignore the rest [DllImport ("gpod")] - public static extern IntPtr itdb_info_get_ipod_info_table(); + internal static extern IntPtr itdb_info_get_ipod_info_table(); [DllImport ("gpod")] - public static extern IntPtr itdb_info_get_ipod_generation_string(IpodGeneration generation); + internal static extern IntPtr itdb_info_get_ipod_generation_string(IpodGeneration generation); [DllImport ("gpod")] - public static extern IntPtr itdb_info_get_ipod_model_name_string(IpodModel model); + internal static extern IntPtr itdb_info_get_ipod_model_name_string(IpodModel model); } } diff --git a/bindings/mono/libgpod-sharp/PhotoAlbum.cs b/bindings/mono/libgpod-sharp/PhotoAlbum.cs index 3f0ea5e..61c82f1 100644 --- a/bindings/mono/libgpod-sharp/PhotoAlbum.cs +++ b/bindings/mono/libgpod-sharp/PhotoAlbum.cs @@ -40,13 +40,13 @@ namespace GPod { // Ignore the rest [DllImport ("gpod")] - public static extern IntPtr itdb_photodb_photoalbum_new(string albumname); + internal static extern IntPtr itdb_photodb_photoalbum_new(string albumname); [DllImport ("gpod")] - public static extern void itdb_photodb_photoalbum_free(HandleRef album); + internal static extern void itdb_photodb_photoalbum_free(HandleRef album); [DllImport ("gpod")] - public static extern void itdb_photodb_photoalbum_add_photo(IntPtr photodb, HandleRef album, HandleRef photo, int position); + internal static extern void itdb_photodb_photoalbum_add_photo(IntPtr photodb, HandleRef album, HandleRef photo, int position); } } diff --git a/bindings/mono/libgpod-sharp/PhotoDB.cs b/bindings/mono/libgpod-sharp/PhotoDB.cs index 62db030..67780b6 100644 --- a/bindings/mono/libgpod-sharp/PhotoDB.cs +++ b/bindings/mono/libgpod-sharp/PhotoDB.cs @@ -31,43 +31,43 @@ namespace GPod { // Ignore the rest [DllImport ("gpod")] - public static extern IntPtr itdb_photodb_create(string mountpoint); + internal static extern IntPtr itdb_photodb_create(string mountpoint); [DllImport ("gpod")] - public static extern void itdb_photodb_free(HandleRef photodb); + internal static extern void itdb_photodb_free(HandleRef photodb); [DllImport ("gpod")] - public static extern IntPtr itdb_photodb_parse(string mountpoint, out IntPtr gerror); + internal static extern IntPtr itdb_photodb_parse(string mountpoint, out IntPtr gerror); [DllImport ("gpod")] - public static extern bool itdb_photodb_write(HandleRef photodb, out IntPtr gerror); + internal static extern bool itdb_photodb_write(HandleRef photodb, out IntPtr gerror); [DllImport ("gpod")] - public static extern IntPtr itdb_photodb_add_photo(HandleRef photodb, string filename, int position, int rotation, out IntPtr gerror); + internal static extern IntPtr itdb_photodb_add_photo(HandleRef photodb, string filename, int position, int rotation, out IntPtr gerror); [DllImport ("gpod")] - public static extern IntPtr itdb_photodb_add_photo_from_data(HandleRef photodb, IntPtr image_data, int image_data_len, int position, int rotation, out IntPtr gerror); + internal static extern IntPtr itdb_photodb_add_photo_from_data(HandleRef photodb, IntPtr image_data, int image_data_len, int position, int rotation, out IntPtr gerror); [DllImport ("gpod")] - public static extern IntPtr itdb_photodb_add_photo_from_pixbuf(HandleRef photodb, IntPtr pixbuf, int position, int rotation, out IntPtr gerror); + internal static extern IntPtr itdb_photodb_add_photo_from_pixbuf(HandleRef photodb, IntPtr pixbuf, int position, int rotation, out IntPtr gerror); [DllImport ("gpod")] - public static extern void itdb_photodb_remove_photo(HandleRef photodb, HandleRef album, HandleRef photo); + internal static extern void itdb_photodb_remove_photo(HandleRef photodb, HandleRef album, HandleRef photo); [DllImport ("gpod")] - public static extern IntPtr itdb_photodb_photoalbum_create(HandleRef photodb, string albumname, int pos); + internal static extern IntPtr itdb_photodb_photoalbum_create(HandleRef photodb, string albumname, int pos); [DllImport ("gpod")] - public static extern IntPtr itdb_photodb_photoalbum_by_name(HandleRef photodb, string albumname); + internal static extern IntPtr itdb_photodb_photoalbum_by_name(HandleRef photodb, string albumname); [DllImport ("gpod")] - public static extern void itdb_photodb_photoalbum_remove(HandleRef photodb, HandleRef album, bool remove_pics); + internal static extern void itdb_photodb_photoalbum_remove(HandleRef photodb, HandleRef album, bool remove_pics); [DllImport ("gpod")] - public static extern void itdb_photodb_photoalbum_add(HandleRef photodb, HandleRef album, int pos); + internal static extern void itdb_photodb_photoalbum_add(HandleRef photodb, HandleRef album, int pos); [DllImport ("gpod")] - public static extern void itdb_photodb_photoalbum_unlink(HandleRef album); + internal static extern void itdb_photodb_photoalbum_unlink(HandleRef album); } } diff --git a/bindings/mono/libgpod-sharp/Playlist.cs b/bindings/mono/libgpod-sharp/Playlist.cs index 6704012..b0d1889 100644 --- a/bindings/mono/libgpod-sharp/Playlist.cs +++ b/bindings/mono/libgpod-sharp/Playlist.cs @@ -43,19 +43,19 @@ namespace GPod { // Ignore the rest [DllImport ("gpod")] - public static extern IntPtr itdb_playlist_new(string title, bool spl); + internal static extern IntPtr itdb_playlist_new(string title, bool spl); [DllImport ("gpod")] - public static extern void itdb_playlist_free(HandleRef pl); + internal static extern void itdb_playlist_free(HandleRef pl); [DllImport ("gpod")] - public static extern IntPtr itdb_playlist_duplicate(HandleRef pl); + internal static extern IntPtr itdb_playlist_duplicate(HandleRef pl); [DllImport ("gpod")] - public static extern void itdb_playlist_add_track(HandleRef pl, HandleRef track, int pos); + internal static extern void itdb_playlist_add_track(HandleRef pl, HandleRef track, int pos); [DllImport ("gpod")] - public static extern void itdb_playlist_remove_track(HandleRef pl, HandleRef track); + internal static extern void itdb_playlist_remove_track(HandleRef pl, HandleRef track); } } diff --git a/bindings/mono/libgpod-sharp/Thumbnail.cs b/bindings/mono/libgpod-sharp/Thumbnail.cs index 134f569..c8aa852 100644 --- a/bindings/mono/libgpod-sharp/Thumbnail.cs +++ b/bindings/mono/libgpod-sharp/Thumbnail.cs @@ -28,16 +28,16 @@ namespace GPod { // Ignore all fields (they are opaque) [DllImport ("gpod")] - public static extern IntPtr itdb_thumb_duplicate(HandleRef thumb); + internal static extern IntPtr itdb_thumb_duplicate(HandleRef thumb); [DllImport ("gpod")] - public static extern void itdb_thumb_free(HandleRef thumb); + internal static extern void itdb_thumb_free(HandleRef thumb); [DllImport ("gpod")] - public static extern IntPtr itdb_thumb_to_pixbuf_at_size(HandleRef device, HandleRef thumb, int width, int height); + internal static extern IntPtr itdb_thumb_to_pixbuf_at_size(HandleRef device, HandleRef thumb, int width, int height); [DllImport ("gpod")] - public static extern IntPtr itdb_thumb_to_pixbufs(HandleRef device, HandleRef thumb); + internal static extern IntPtr itdb_thumb_to_pixbufs(HandleRef device, HandleRef thumb); } } diff --git a/bindings/mono/libgpod-sharp/Track.cs b/bindings/mono/libgpod-sharp/Track.cs index 3c342f9..e707f95 100644 --- a/bindings/mono/libgpod-sharp/Track.cs +++ b/bindings/mono/libgpod-sharp/Track.cs @@ -130,31 +130,31 @@ namespace GPod { // Ignore the rest [DllImport ("gpod")] - public static extern IntPtr itdb_track_new(); + internal static extern IntPtr itdb_track_new(); [DllImport ("gpod")] - public static extern void itdb_track_free(HandleRef track); + internal static extern void itdb_track_free(HandleRef track); [DllImport ("gpod")] - public static extern IntPtr itdb_track_duplicate(HandleRef track); + internal static extern IntPtr itdb_track_duplicate(HandleRef track); [DllImport ("gpod")] - public static extern IntPtr itdb_track_get_thumbnail(HandleRef track, int width, int height); + internal static extern IntPtr itdb_track_get_thumbnail(HandleRef track, int width, int height); [DllImport ("gpod")] - public static extern bool itdb_track_has_thumbnails(HandleRef track); + internal static extern bool itdb_track_has_thumbnails(HandleRef track); [DllImport ("gpod")] - public static extern bool itdb_track_set_thumbnails(HandleRef track, string filename); + internal static extern bool itdb_track_set_thumbnails(HandleRef track, string filename); [DllImport ("gpod")] - public static extern bool itdb_track_set_thumbnails_from_data(HandleRef track, IntPtr image_data, int image_data_len); + internal static extern bool itdb_track_set_thumbnails_from_data(HandleRef track, IntPtr image_data, int image_data_len); [DllImport ("gpod")] - public static extern bool itdb_track_set_thumbnails_from_pixbuf(HandleRef track, IntPtr pixbuf); + internal static extern bool itdb_track_set_thumbnails_from_pixbuf(HandleRef track, IntPtr pixbuf); [DllImport ("gpod")] - public static extern void itdb_track_remove_thumbnails(HandleRef track); + internal static extern void itdb_track_remove_thumbnails(HandleRef track); } } ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ gtkpod-cvs2 mailing list gtkpod-cvs2@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2