Changeset 740 for vendor/current/source4/lib/events
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- Location:
- vendor/current/source4/lib/events
- Files:
-
- 1 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source4/lib/events/events.h
r414 r740 2 2 #define __LIB_EVENTS_H__ 3 3 #define TEVENT_COMPAT_DEFINES 1 4 #include < ../lib/tevent/tevent.h>4 #include <tevent.h> 5 5 struct tevent_context *s4_event_context_init(TALLOC_CTX *mem_ctx); 6 6 struct tevent_context *event_context_find(TALLOC_CTX *mem_ctx) _DEPRECATED_; 7 void s4_event_context_set_default(struct tevent_context *ev); 7 8 #endif /* __LIB_EVENTS_H__ */ -
vendor/current/source4/lib/events/tevent_s4.c
r414 r740 72 72 } 73 73 74 /*75 find an event context that is a parent of the given memory context,76 or create a new event context as a child of the given context if77 none is found78 79 This should be used in preference to event_context_init() in places80 where you would prefer to use the existing event context if possible81 (which is most situations)82 */83 struct tevent_context *event_context_find(TALLOC_CTX *mem_ctx)84 {85 struct tevent_context *ev = talloc_find_parent_bytype(mem_ctx, struct tevent_context);86 if (ev == NULL) {87 ev = tevent_context_init(mem_ctx);88 }89 return ev;90 }
Note:
See TracChangeset
for help on using the changeset viewer.