GUsb.Context.set_main_context

### Method

# GUsb Contextset_main_context

#### Declaration

    void
    g_usb_context_set_main_context (
      GUsbContext* self,
      GMainContext* main_ctx
    )

#### Description

Sets the internal GMainContext to use for synchronous methods.

Available since: | 0.2.5

#### Parameters

`main_ctx` | `GMainContext`
| No description available.
| The data is owned by the caller of the function.