code: public int addShmFormat(final int format) {
          final Pointer<Integer> formatPointer = wrap(Integer.class,
                                                      WaylandServerCore.INSTANCE()
                                                                       .wl_display_add_shm_format(this.pointer,
                                                                                                  format));
          return formatPointer.address == 0L ? 0 : formatPointer.get();
      }
docs: Add support for a wl_shm pixel format <p> Add the specified wl_shm format to the list of formats the wl_shm
  object advertises when a client binds to it.  Adding a format to the list means that clients will know that the
  compositor supports this format and may use it for creating wl_shm buffers.  The compositor must be able to
  handle the pixel format when a client requests it. <p> The compositor by default supports WL_SHM_FORMAT_ARGB8888
  and WL_SHM_FORMAT_XRGB8888. <p>
  
  @param format The wl_shm pixel format to advertise
  
  @return A pointer to the wl_shm format that was added to the list or NULL if adding it to the list failed.