ECal.Client.generate_instances_for_object_sync

### Method

# ECal Clientgenerate_instances_for_object_sync

since: 3.2

#### Declaration [src]

    void
    e_cal_client_generate_instances_for_object_sync (
      ECalClient* client,
      ICalComponent* icalcomp,
      time_t start,
      time_t end,
      GCancellable* cancellable,
      ECalRecurInstanceCb cb,
      gpointer cb_data
    )

#### Description [src]

Does a combination of `e_cal_client_get_object_list()` and e_cal_recur_generate_instances_sync(), like e_cal_client_generate_instances_sync(), but for a single object.

The callback function should do a `g_object_ref()` of the calendar component it gets passed if it intends to keep it around, since it will be unref’ed as soon as the callback returns.

Available since: 3.2

#### Parameters

`icalcomp`

  Type: `None`

  Object to generate instances from.

  The data is owned by the caller of the method.

`start`

  Type: `time_t`

  Start time for query.

`end`

  Type: `time_t`

  End time for query.

`cancellable`

  Type: `GCancellable`

  A `GCancellable`; can be `NULL`.

  The argument can be `NULL`.
  The data is owned by the caller of the method.

`cb`

  Type: `ECalRecurInstanceCb`

  Callback for each generated instance.

`cb_data`

  Type: `gpointer`

  Closure data for the callback.

  The argument can be `NULL`.
  The data is owned by the caller of the method.