<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Richard Hughes wrote:
<blockquote cite="mid:1193684237.3271.12.camel@hughsie-laptop"
 type="cite">
  <pre wrap="">On Mon, 2007-10-29 at 12:06 +0100, Tim Lauridsen wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Ok, i have implemented 'search-group' for the yum backend, using the
current pk groups, to see how it looks (very big 'other' &amp; 'system'
group)
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Cool! How do we know what groups are present? Can this be hardcoded in
the backend C file, or do we need a callout?

/**
 * backend_get_groups:
 */
static void
backend_get_groups (PkBackend *backend, PkEnumList *elist)
{
        g_return_if_fail (backend != NULL);
        pk_enum_list_append_multiple (elist,
                                      PK_GROUP_ENUM_ACCESSIBILITY,
                                      PK_GROUP_ENUM_GAMES,
                                      PK_GROUP_ENUM_SYSTEM,
                                      -1);
}

Richard.


_______________________________________________
PackageKit mailing list
<a class="moz-txt-link-abbreviated" href="mailto:PackageKit@lists.freedesktop.org">PackageKit@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/packagekit">http://lists.freedesktop.org/mailman/listinfo/packagekit</a>
  </pre>
</blockquote>
We now the group, so we can hard code it.<br>
<br>
Tim<br>
</body>
</html>