Mir

[enhancement] mir/events/event_builders.h should be explicitly supported

Bug #1436315 reported by Alan Griffiths
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Triaged
Wishlist
Unassigned
mir (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

The mir/events/event_builders.h header provides definitions and features for building events that are useful for downstream test harnesses.

As such there should be acceptance tests for this functionality.

Tags: enhancement
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

... or replaced with something else that is explicityly supported.

The current format is to export C++ functions from libmirclient. It would be more consistent and portable if they were C functions like the rest of libmirclient.

tags: added: enhancement
summary: - mir/events/event_builders.h should be explicitly supported
+ [enhancement] mir/events/event_builders.h should be explicitly supported
Changed in mir:
importance: Undecided → Low
status: New → Triaged
importance: Low → Wishlist
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

The current condition is the result of a trade-off between inelegance of having these (and the other "MIR_CLIENT_DETAIL" functions) exported from libmirclient vs the cost of introducing another libmirclientdetail (say) library to contain everything that isn't just supporting the client API.

Suggesting making them C functions like the client API ignores the principle that not part of the client API.

As we get more and more "MIR_CLIENT_DETAIL" functions the argument for another library gets stronger.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I'm still thinking some nice clean public C functions would be better.

It's quite conceivable that toolkits in future might want to use such functions to synthesise events for their own testing purposes.

Revision history for this message
Michał Sawicz (saviq) wrote :

Syncing task from Mir.

Changed in mir (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.