How do I list the usable GPIO's in the ESP8266mod programmatically

I have a need to access an array of usable pins (or a complete list which I will filter) or GPIO's in the ESP8266mod. I want an accessible list that comes with the framework if there is such a thing that I can use to display in combo boxes. Any help is appreciated.

Thanks.

It shouldn't be to hard to make a list and put it in an array. (or 2, 1 for the name and 1 for the pin nr. maybe even 3 adding flags for functions like pwm & uart etc.)

The "pins_arduino.h" file for each 'variant' should contain several lists of pins.

For example, on the Arduino UNO the size of the digital_pin_to_port_PGM[] array will tell you how many digital pins there are. In combination with the array digital_pin_to_bit_mask_PGM[] you will get the port index 1=A, 2=B, etc. (0=NoPin) and the bit mask within the port (1, 2, 4,...128).
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #000000; background-color: #ffffff} p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #000000; background-color: #ffffff}