Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
G
geany
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
geany
Commits
7261742f
Kaydet (Commit)
7261742f
authored
Eyl 18, 2016
tarafından
Matthew Brush
Kaydeden (comit)
Matthew Brush
Agu 04, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Allow plugins to get the data they set
üst
a108f916
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
plugindata.h
src/plugindata.h
+2
-1
pluginutils.c
src/pluginutils.c
+18
-0
No files found.
src/plugindata.h
Dosyayı görüntüle @
7261742f
...
...
@@ -59,7 +59,7 @@ G_BEGIN_DECLS
* @warning You should not test for values below 200 as previously
* @c GEANY_API_VERSION was defined as an enum value, not a macro.
*/
#define GEANY_API_VERSION 23
3
#define GEANY_API_VERSION 23
4
/* hack to have a different ABI when built with GTK3 because loading GTK2-linked plugins
* with GTK3-linked Geany leads to crash */
...
...
@@ -315,6 +315,7 @@ gboolean geany_plugin_register(GeanyPlugin *plugin, gint api_version,
gboolean
geany_plugin_register_full
(
GeanyPlugin
*
plugin
,
gint
api_version
,
gint
min_api_version
,
gint
abi_version
,
gpointer
data
,
GDestroyNotify
free_func
);
gpointer
geany_plugin_get_data
(
const
GeanyPlugin
*
plugin
);
void
geany_plugin_set_data
(
GeanyPlugin
*
plugin
,
gpointer
data
,
GDestroyNotify
free_func
);
/** Convenience macro to register a plugin.
...
...
src/pluginutils.c
Dosyayı görüntüle @
7261742f
...
...
@@ -570,6 +570,24 @@ void plugin_builder_connect_signals(GeanyPlugin *plugin,
}
/** Get the additional data that corresponds to the plugin.
*
* @param plugin The plugin provided by Geany
* @return The data corresponding to the plugin or @c NULL if none set.
*
* @since 1.32 (API 234)
*
* @see geany_plugin_set_data()
*/
gpointer
geany_plugin_get_data
(
const
GeanyPlugin
*
plugin
)
{
g_return_val_if_fail
(
plugin
!=
NULL
,
NULL
);
g_return_val_if_fail
(
PLUGIN_LOADED_OK
(
plugin
->
priv
),
NULL
);
return
plugin
->
priv
->
cb_data
;
}
/** Add additional data that corresponds to the plugin.
*
* @p pdata is the pointer going to be passed to the individual plugin callbacks
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment