Reference Manual - 0.9.25
IDirectFB   CreatePalette

Create a palette matching the specified description.

CreatePalette (
  IDirectFB   * thiz,
  const DFBPaletteDescription   * desc,
  IDirectFBPalette   ** ret_interface
);

Passing a NULL description creates a default palette with 256 entries filled with colors matching the RGB332 format.