summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2020-01-09 10:14:46 -0500
committerChristopher Michael <cp.michael@samsung.com>2020-01-09 10:20:49 -0500
commite3a28ecd1e74465f96185e38dc447d9edc6aaa98 (patch)
tree45a6c34bb8973f02714926a5e630d0413e12d643
parentb3114e2484d831bfedfd4f21ece766742a5e1acf (diff)
ecore-wl2: Move ecore_wl2_offer functions to be internal
These functions are not used outside of EFL, so there is no need for them to be public. ref T8013
-rw-r--r--src/lib/ecore_wl2/Ecore_Wl2.h130
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_internal.h130
2 files changed, 130 insertions, 130 deletions
diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index 63b62c5752..7806f5d167 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -1770,136 +1770,6 @@ EAPI int ecore_wl2_output_transform_get(Ecore_Wl2_Output *output);
1770EAPI int ecore_wl2_display_compositor_version_get(Ecore_Wl2_Display *disp); 1770EAPI int ecore_wl2_display_compositor_version_get(Ecore_Wl2_Display *disp);
1771 1771
1772/** 1772/**
1773 * Get the actions available from the data source
1774 *
1775 * @param offer Offer object to use
1776 *
1777 * @return or´ed values from Ecore_Wl2_Drag_Action which are describing the available actions
1778 *
1779 * @ingroup Ecore_Wl2_Dnd_Group
1780 * @since 1.19
1781 */
1782EAPI Ecore_Wl2_Drag_Action ecore_wl2_offer_actions_get(Ecore_Wl2_Offer *offer);
1783
1784/**
1785 * Set the actions which are supported by you
1786 *
1787 * @param offer Offer object to use
1788 * @param actions A or´ed value of mutliple Ecore_Wl2_Drag_Action values
1789 * @param action the preferred action out of the actions
1790 *
1791 * @ingroup Ecore_Wl2_Dnd_Group
1792 * @since 1.19
1793 */
1794EAPI void ecore_wl2_offer_actions_set(Ecore_Wl2_Offer *offer, Ecore_Wl2_Drag_Action actions, Ecore_Wl2_Drag_Action action);
1795
1796/**
1797 * Get action which is set by either the data source or in the last call of actions_set
1798 *
1799 * @param offer Offer object to use
1800 *
1801 * @return the preferred action
1802 *
1803 * @ingroup Ecore_Wl2_Dnd_Group
1804 * @since 1.19
1805 */
1806EAPI Ecore_Wl2_Drag_Action ecore_wl2_offer_action_get(Ecore_Wl2_Offer *offer);
1807
1808/**
1809 * Get the mime types which are given by the source
1810 *
1811 * @param offer the offer to query
1812 *
1813 * @return a eina array of strdup´ed strings, this array must NOT be changed or freed
1814 *
1815 * @ingroup Ecore_Wl2_Dnd_Group
1816 * @since 1.19
1817 */
1818EAPI Eina_Array* ecore_wl2_offer_mimes_get(Ecore_Wl2_Offer *offer);
1819
1820/**
1821 * Set mimetypes you are accepting under this offer
1822 *
1823 * @param offer the offer to use
1824 *
1825 * @ingroup Ecore_Wl2_Dnd_Group
1826 * @since 1.19
1827 */
1828EAPI void ecore_wl2_offer_mimes_set(Ecore_Wl2_Offer *offer, Eina_Array *mimes);
1829
1830/**
1831 * Accept a single mime type for an offer
1832 *
1833 * @param offer the offer to use
1834 * @param mime_type the mime type
1835 *
1836 * @ingroup Ecore_Wl2_Dnd_Group
1837 * @since 1.20
1838 */
1839EAPI void ecore_wl2_offer_accept(Ecore_Wl2_Offer *offer, const char *mime_type);
1840
1841/**
1842 * Request the data from this offer.
1843 * The event ECORE_WL2_EVENT_OFFER_DATA_READY is called when the data is available.
1844 * There offer will be not destroyed as long as requested data is not emitted by the event.
1845 *
1846 * @param offer the offer to use
1847 * @param mime the mimetype to receive
1848 *
1849 * @ingroup Ecore_Wl2_Dnd_Group
1850 * @since 1.19
1851 */
1852EAPI void ecore_wl2_offer_receive(Ecore_Wl2_Offer *offer, char *mime);
1853
1854/**
1855 * Request the data from this offer on an externally managed fd.
1856 * The event ECORE_WL2_EVENT_OFFER_DATA_READY is called when the data is available.
1857 * There offer will be not destroyed as long as requested data is not emitted by the event.
1858 *
1859 * @param offer the offer to use
1860 * @param mime the mimetype to receive
1861 * @param fd the fd to pass for receiving
1862 *
1863 * @ingroup Ecore_Wl2_Dnd_Group
1864 * @since 1.20
1865 */
1866EAPI void ecore_wl2_offer_proxy_receive(Ecore_Wl2_Offer *offer, const char *mime, int fd);
1867
1868/**
1869 * End the use of a proxy received offer. This may invalidate the offer object
1870 *
1871 * @param offer the offer
1872 *
1873 * @ingroup Ecore_Wl2_Dnd_Group
1874 * @since 1.20
1875 */
1876EAPI void ecore_wl2_offer_proxy_receive_end(Ecore_Wl2_Offer *offer);
1877
1878/**
1879 * Check if the given offer supports the given mimetype
1880 *
1881 * @param offer the offer to use
1882 * @param mime the mimetype to check
1883 *
1884 * @return Returns true if the mimetype is supported by this offer, false if not
1885 *
1886 * @ingroup Ecore_Wl2_Dnd_Group
1887 * @since 1.19
1888 */
1889EAPI Eina_Bool ecore_wl2_offer_supports_mime(Ecore_Wl2_Offer *offer, const char *mime);
1890
1891/**
1892 * Mark this offer as finished
1893 * This will call the dnd_finished event on the source of the sender.
1894 *
1895 * @param offer the offer to use
1896 *
1897 * @ingroup Ecore_Wl2_Dnd_Group
1898 * @since 1.19
1899 */
1900EAPI void ecore_wl2_offer_finish(Ecore_Wl2_Offer *offer);
1901
1902/**
1903 * Disable session recovery for any further connections. Must be called 1773 * Disable session recovery for any further connections. Must be called
1904 * before connecting. This is irreversible and not intended for general 1774 * before connecting. This is irreversible and not intended for general
1905 * use. 1775 * use.
diff --git a/src/lib/ecore_wl2/ecore_wl2_internal.h b/src/lib/ecore_wl2/ecore_wl2_internal.h
index 82f7046ed1..cbe1e13ef3 100644
--- a/src/lib/ecore_wl2/ecore_wl2_internal.h
+++ b/src/lib/ecore_wl2/ecore_wl2_internal.h
@@ -218,6 +218,136 @@ EAPI uint32_t ecore_wl2_dnd_selection_set(Ecore_Wl2_Input *input, const char **t
218 */ 218 */
219EAPI uint32_t ecore_wl2_dnd_selection_clear(Ecore_Wl2_Input *input); 219EAPI uint32_t ecore_wl2_dnd_selection_clear(Ecore_Wl2_Input *input);
220 220
221/**
222 * Get the actions available from the data source
223 *
224 * @param offer Offer object to use
225 *
226 * @return or´ed values from Ecore_Wl2_Drag_Action which are describing the available actions
227 *
228 * @ingroup Ecore_Wl2_Dnd_Group
229 * @since 1.19
230 */
231EAPI Ecore_Wl2_Drag_Action ecore_wl2_offer_actions_get(Ecore_Wl2_Offer *offer);
232
233/**
234 * Set the actions which are supported by you
235 *
236 * @param offer Offer object to use
237 * @param actions A or´ed value of mutliple Ecore_Wl2_Drag_Action values
238 * @param action the preferred action out of the actions
239 *
240 * @ingroup Ecore_Wl2_Dnd_Group
241 * @since 1.19
242 */
243EAPI void ecore_wl2_offer_actions_set(Ecore_Wl2_Offer *offer, Ecore_Wl2_Drag_Action actions, Ecore_Wl2_Drag_Action action);
244
245/**
246 * Get action which is set by either the data source or in the last call of actions_set
247 *
248 * @param offer Offer object to use
249 *
250 * @return the preferred action
251 *
252 * @ingroup Ecore_Wl2_Dnd_Group
253 * @since 1.19
254 */
255EAPI Ecore_Wl2_Drag_Action ecore_wl2_offer_action_get(Ecore_Wl2_Offer *offer);
256
257/**
258 * Get the mime types which are given by the source
259 *
260 * @param offer the offer to query
261 *
262 * @return a eina array of strdup´ed strings, this array must NOT be changed or freed
263 *
264 * @ingroup Ecore_Wl2_Dnd_Group
265 * @since 1.19
266 */
267EAPI Eina_Array* ecore_wl2_offer_mimes_get(Ecore_Wl2_Offer *offer);
268
269/**
270 * Set mimetypes you are accepting under this offer
271 *
272 * @param offer the offer to use
273 *
274 * @ingroup Ecore_Wl2_Dnd_Group
275 * @since 1.19
276 */
277EAPI void ecore_wl2_offer_mimes_set(Ecore_Wl2_Offer *offer, Eina_Array *mimes);
278
279/**
280 * Accept a single mime type for an offer
281 *
282 * @param offer the offer to use
283 * @param mime_type the mime type
284 *
285 * @ingroup Ecore_Wl2_Dnd_Group
286 * @since 1.20
287 */
288EAPI void ecore_wl2_offer_accept(Ecore_Wl2_Offer *offer, const char *mime_type);
289
290/**
291 * Request the data from this offer.
292 * The event ECORE_WL2_EVENT_OFFER_DATA_READY is called when the data is available.
293 * There offer will be not destroyed as long as requested data is not emitted by the event.
294 *
295 * @param offer the offer to use
296 * @param mime the mimetype to receive
297 *
298 * @ingroup Ecore_Wl2_Dnd_Group
299 * @since 1.19
300 */
301EAPI void ecore_wl2_offer_receive(Ecore_Wl2_Offer *offer, char *mime);
302
303/**
304 * Request the data from this offer on an externally managed fd.
305 * The event ECORE_WL2_EVENT_OFFER_DATA_READY is called when the data is available.
306 * There offer will be not destroyed as long as requested data is not emitted by the event.
307 *
308 * @param offer the offer to use
309 * @param mime the mimetype to receive
310 * @param fd the fd to pass for receiving
311 *
312 * @ingroup Ecore_Wl2_Dnd_Group
313 * @since 1.20
314 */
315EAPI void ecore_wl2_offer_proxy_receive(Ecore_Wl2_Offer *offer, const char *mime, int fd);
316
317/**
318 * End the use of a proxy received offer. This may invalidate the offer object
319 *
320 * @param offer the offer
321 *
322 * @ingroup Ecore_Wl2_Dnd_Group
323 * @since 1.20
324 */
325EAPI void ecore_wl2_offer_proxy_receive_end(Ecore_Wl2_Offer *offer);
326
327/**
328 * Check if the given offer supports the given mimetype
329 *
330 * @param offer the offer to use
331 * @param mime the mimetype to check
332 *
333 * @return Returns true if the mimetype is supported by this offer, false if not
334 *
335 * @ingroup Ecore_Wl2_Dnd_Group
336 * @since 1.19
337 */
338EAPI Eina_Bool ecore_wl2_offer_supports_mime(Ecore_Wl2_Offer *offer, const char *mime);
339
340/**
341 * Mark this offer as finished
342 * This will call the dnd_finished event on the source of the sender.
343 *
344 * @param offer the offer to use
345 *
346 * @ingroup Ecore_Wl2_Dnd_Group
347 * @since 1.19
348 */
349EAPI void ecore_wl2_offer_finish(Ecore_Wl2_Offer *offer);
350
221# undef EAPI 351# undef EAPI
222# define EAPI 352# define EAPI
223 353