~ubuntu-branches/debian/sid/hal/sid

« back to all changes in this revision

Viewing changes to hald/ck-tracker.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2007-10-23 12:33:58 UTC
  • Revision ID: james.westby@ubuntu.com-20071023123358-xaf8mjc5n84d5gtz
Tags: upstream-0.5.10
ImportĀ upstreamĀ versionĀ 0.5.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
810
810
        tracker->refcount = 1;
811
811
        return tracker;
812
812
}
 
813
 
 
814
CKSession *
 
815
ck_tracker_find_session (CKTracker *tracker, const char *ck_session_objpath)
 
816
{
 
817
        CKSession *session;
 
818
        GSList *i;
 
819
        for (i = tracker->sessions; i != NULL; i = g_slist_next (i)) {
 
820
                session = i->data;
 
821
                if (strcmp (session->session_objpath, ck_session_objpath) == 0) {
 
822
                        goto out;
 
823
                }
 
824
        }
 
825
        session = NULL;
 
826
out:
 
827
        return session;
 
828
}