# Raspberry Pi Functionality Suite

**URL:** <https://forum.xojo.com/t/raspberry-pi-functionality-suite/85585>\
**Category:** Raspberry Pi\
**Created:** [June 7, 2025, 3:31pm UTC](https://forum.xojo.com/t/raspberry-pi-functionality-suite/85585 "2025-06-07T15:31:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eugene\_Dakin](https://forum.xojo.com/user_avatar/forum.xojo.com/eugene_dakin/32/178_2.png) [@Eugene\_Dakin](https://forum.xojo.com/u/Eugene_Dakin)\
**Post date:** [June 7, 2025, 3:31pm UTC](https://forum.xojo.com/t/raspberry-pi-functionality-suite/85585/1 "2025-06-07T15:31:13Z")

</div>

Hello Everyone,

I am partially-finished writing a book on Declares for the Raspberry Pi. I have been asked to share the declares created so-far, and they are available on my Github page at:

> **[GitHub - eugenedakin/PiFS: Raspberry Pi Functionality Suite - Xojo](https://github.com/eugenedakin/PiFS)**
>
> Raspberry Pi Functionality Suite - Xojo

Keeping with the naming convention of the Windows Functionality Suite containing many declares, this is called the PiFS - Short-form for Raspberry Pi Functionality Suite. As I continue to write more declares, I’ll update the Github repository with updated PiFS versions.

Warm regards.

---

<div class="post-metadata">

**Author:** ![Eugene\_Dakin](https://forum.xojo.com/user_avatar/forum.xojo.com/eugene_dakin/32/178_2.png) [@Eugene\_Dakin](https://forum.xojo.com/u/Eugene_Dakin)\
**Post date:** [June 11, 2025, 6:08am UTC](https://forum.xojo.com/t/raspberry-pi-functionality-suite/85585/2 "2025-06-11T06:08:16Z")

</div>

A list of updates:

Versions: Version 1.0 (9 May 2025)

- added Accept method
- added Bind method
- added Close method
- added Errno method
- added ErrnoMessage method
- added fcntl method
- added hci\_devinfo method
- added hci\_get\_route method
- added Listen method
- added Read Method
- added selectBT method
- added Socket method
- added Write method
- added hci\_dev\_info structure
- added hci\_dev\_stats structure
- added sockaddr\_rc structure
- added over 35 bluetooth constants

Version 1.1 (25 May 2025)

- added Statvfs structure
- added statvfs method

Version 1.2 (2 June 2025)

- added Timerfd\_Create method
- added Timerfd\_SetTime method
- added CLOCK\_MONOTONIC constant
- added TFD\_CLOEXEC consttant
- added TFD\_NONBLOCK constant

Version 1.3 (3 June 2025)

- added clock\_gettime method
- added usleep method
- added nanosleep method
- added CLOCK\_REALTIME constant
- added CLOCK\_PROCESS\_CPUTIME\_ID constant
- added CLOCK\_THREAD\_CPUTIME\_ID constant
- added TimeSpec structure

Version 1.4 (4 June 2025)

- added Timer Methods in the PiTimer Class
- added Elapsed Microseconds Timer Method
- added Elapsed Milliseconds Timer Method
- added GetCurrentTime Timer Method
- added IsRunning Timer Method
- added Reset Timer method
- added SleepNanoseconds Timer Method
- added Start Timer method
- added Stop Timer method
- added NanoSleep Declare
- added uSleep (microsleep) Declare

Version 1.5 (6 June 2025)

- added TimeSpec structure
- added thread methods
- added pthread\_create Declare
- added pthread\_join Declare
- added pthread\_detach Declare
- added pthread\_self Declare
- added pthread\_exit Declare
- added sleep declare

Version 1.6 (7 June 2025)

- added gtk\_application\_new Declare
- added gtk\_application\_window\_new Declare
- added gtk\_widget\_show\_all Declare
- added gtk\_window\_set\_default\_size Declare
- added gtk\_window\_set\_title Declare
- added g\_object\_unref Declare
- added g\_signal\_connect\_data Declare
- added printf declare

Version 1.7 (8 June 2025)

- added gtk\_widget\_add\_events Declare
- added GDK\_BUTTON\_PRESS\_MASK Constant
- added gtk\_widget\_destroy Declare
- added g\_application\_run Declare
- added GTK\_MESSAGE\_INFO Constant
- added GTK\_BUTTONS\_OK Constant
- added GTK\_DIALOG\_MODAL Constant
- corrected issue in g\_signal\_connect\_data Declare
- added gtk\_widget\_get\_toplevel Declare
- added GTK\_DIALOG\_DESTROY\_WITH\_PARENT Constant
- added GTK\_DIALOG\_USE\_HEADER\_BAR Constant
- added GTK\_MESSAGE\_QUESTION Constant
- added GTK\_BUTTONS\_OK\_CANCEL Constant
- added GTK\_RESPONSE\_OK Constant
- added GTK\_RESPONSE\_CANCEL Constant
- added gtk\_dialog\_new\_with\_buttons Declare
- added gtk\_container\_add Declare
- added gtk\_window\_set\_modal Declare
- added RESPONSE\_OK Constant
- added RESPONSE\_CANCEL Constant
- added gtk\_dialog\_add\_button Declare
- added gtk\_dialog\_get\_content\_area Declare
- added gtk\_label\_new Declare

Version 1.8 (9 June 2025)

- added gtk\_widget\_get\_window Declare
- added gdk\_cursor\_new\_from\_name Declare
- added gdk\_window\_set\_cursor Declare
- added gtk\_widget\_get\_display Declare
- added gtk\_window\_get\_window Declare
- added gtk\_menu\_bar\_new Declare
- added gtk\_menu\_new Declare
- added gtk\_menu\_item\_new\_with\_label Declare
- added gtk\_menu\_item\_set\_submenu Declare
- added gtk\_bin\_get\_child Declare
- added gtk\_widget\_get\_parent Declare
- added gtk\_widget\_get\_name Declare
- added gtk\_widget\_get\_ancestor Declare
- added gtk\_box\_pack\_start Declare
- added gtk\_widget\_get\_parent\_window
- added gtk\_widget\_get\_allocation Declare
- added gtk\_window\_get\_titlebar Declare
- added gtk\_window\_list\_toplevels Declare
- added g\_list\_nth\_data Declare
- added gtk\_widget\_get\_visible Declare
- added gtk\_widget\_realize Declare
- added gtk\_menu\_shell\_append Declare
- added gtk\_container\_remove Declare
- added gtk\_window\_get\_child Declare

Version 1.9 (10 June 2025)

- added g\_main\_context\_default Declare
- added g\_idle\_add Declare
- added g\_main\_context\_invoke\_full Declare
- added gtk\_label\_set\_text Declare
- added G\_PRIORITY\_DEFAULT\_IDLE Constant

Version 1.10 (11 June 2025)

- modified constant value of G\_PRIORITY\_DEFAULT\_IDLE
- added G\_PRIORITY\_HIGH Constant
- added G\_PRIORITY\_DEFAULT Constant
- added G\_PRIORITY\_HIGH\_IDLE Constant
- added G\_PRIORITY\_LOW Constant

---

<div class="post-metadata">

**Author:** ![Eugene\_Dakin](https://forum.xojo.com/user_avatar/forum.xojo.com/eugene_dakin/32/178_2.png) [@Eugene\_Dakin](https://forum.xojo.com/u/Eugene_Dakin)\
**Post date:** [June 21, 2025, 1:13pm UTC](https://forum.xojo.com/t/raspberry-pi-functionality-suite/85585/3 "2025-06-21T13:13:52Z")

</div>

Added more declares, and the next sections will start focusing on file handling and dialogs. Here is a link to github and the updates.

> **[GitHub - eugenedakin/PiFS: Raspberry Pi Functionality Suite - Xojo. Declares...](https://github.com/eugenedakin/PiFS)**
>
> Raspberry Pi Functionality Suite - Xojo. Declares for the Pi OS.

Version 1.11 (13 June 2025)

- added gtk\_init Declare
- added gtk\_window\_new Declare
- added gtk\_main Declare
- added gtk\_box\_new Declare
- added gtk\_container\_set\_border\_width Declare

Version 1.12 (14 June 2025)

- added gtk\_button\_new\_with\_label() Declare
- added gtk\_button\_new\_with\_label(cLabel) Declare
- readded g\_idle\_add Declare
- Changed gtk\_main from a function to a sub
- added GTK\_ORIENTATION\_VERTICAL constant

Version 1.13 (18 June 2025)

- change gtk\_container\_add from Sub to Function
- added gtk\_widget\_set\_size\_request Declare
- added gtk\_fixed\_new Declare
- added gtk\_fixed\_put Declare
- added gtk\_widget\_get\_xid Declare
- added gtk\_widget\_show Declare
- changed gtk\_widget\_show\_all from a Sub to Function
- added gdk\_x11\_window\_get\_xid Declare
- changed gtk\_widget\_realize from a Sub to Function
- added xOpenDisplay Declare
- added XFindWindow Declare
- added gtk\_container\_get\_children Declare
- added gtk\_window\_get\_title Declare
- added GTK\_ORIENTATION\_HORIZONTAL Constant
- added g\_main\_context\_get\_default Declare

Version 1.14 (19 June 2025)

- added O\_WRONLY Constant
- added O\_CREAT Constant
- added O\_TRUNC Constant
- added S\_IRUSR Constant
- added S\_IWUSR Constant
- modified Open Declare
- Overload Write Declare
