[Bug 37803] Debug output should include user-readable enum names

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jul 25 19:00:55 CEST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=37803

--- Comment #4 from Will Thompson <will.thompson at collabora.co.uk> 2011-07-25 10:00:55 PDT ---
(In reply to comment #3)
> _gen/telepathy-enums.h:28: Warning: TelepathyGLib:
> symbol='NUM_TP_HANDLE_TYPES': Unknown namespace for symbol
> 'NUM_TP_HANDLE_TYPES'

These aren't new. It's because g-i doesn't understand that NUM_TP_DBUS_ERRORS
is in the TP_ namespace (which is reasonable); it'd prefer them to be
TP_NUM_DBUS_ERRORS.

> I also get the following about my unused types:
> 
> TP_TYPE_ACCESS_CONTROL_TYPE
> TP_TYPE_ANONYMITY_MODE_FLAGS
> TP_TYPE_CHANNEL_CALL_STATE_FLAGS
> TP_TYPE_CHANNEL_CHAT_STATE
> TP_TYPE_CHANNEL_CONTACT_SEARCH_STATE
> TP_TYPE_CHANNEL_GROUP_CHANGE_REASON
> TP_TYPE_CHANNEL_GROUP_FLAGS
> TP_TYPE_CHANNEL_MEDIA_CAPABILITIES
> TP_TYPE_CHANNEL_PASSWORD_FLAGS
> TP_TYPE_CHANNEL_TEXT_MESSAGE_FLAGS
> TP_TYPE_CHANNEL_TEXT_MESSAGE_TYPE
> TP_TYPE_CHANNEL_TEXT_SEND_ERROR
> TP_TYPE_CONNECTION_ALIAS_FLAGS
> TP_TYPE_CONNECTION_CAPABILITY_FLAGS
> TP_TYPE_CONNECTION_PRESENCE_TYPE
> TP_TYPE_CONNECTION_STATUS
> TP_TYPE_CONNECTION_STATUS_REASON
> TP_TYPE_CONN_MGR_PARAM_FLAGS
> TP_TYPE_CONTACT_BLOCKING_CAPABILITIES
> TP_TYPE_CONTACT_INFO_FIELD_FLAGS
> TP_TYPE_CONTACT_INFO_FLAGS
> TP_TYPE_CONTACT_LIST_STATE
> TP_TYPE_CONTACT_METADATA_STORAGE_TYPE
> TP_TYPE_DEBUG_LEVEL
> TP_TYPE_DELIVERY_REPORTING_SUPPORT_FLAGS
> TP_TYPE_DELIVERY_STATUS
> TP_TYPE_DTMF_EVENT
> TP_TYPE_FILE_HASH_TYPE
> TP_TYPE_FILE_TRANSFER_STATE
> TP_TYPE_FILE_TRANSFER_STATE_CHANGE_REASON
> TP_TYPE_HANDLE_TYPE
> TP_TYPE_HTTP_METHOD
> TP_TYPE_LOCAL_HOLD_STATE
> TP_TYPE_LOCAL_HOLD_STATE_REASON
> TP_TYPE_LOCATION_FEATURES
> TP_TYPE_MAIL_NOTIFICATION_FLAGS
> TP_TYPE_MEDIA_STREAM_BASE_PROTO
> TP_TYPE_MEDIA_STREAM_DIRECTION
> TP_TYPE_MEDIA_STREAM_ERROR
> TP_TYPE_MEDIA_STREAM_PENDING_SEND
> TP_TYPE_MEDIA_STREAM_STATE
> TP_TYPE_MEDIA_STREAM_TRANSPORT_TYPE
> TP_TYPE_MEDIA_STREAM_TYPE
> TP_TYPE_MESSAGE_PART_SUPPORT_FLAGS
> TP_TYPE_MESSAGE_SENDING_FLAGS
> TP_TYPE_PROPERTY_FLAGS
> TP_TYPE_RICH_PRESENCE_ACCESS_CONTROL_TYPE
> TP_TYPE_SASL_ABORT_REASON
> TP_TYPE_SASL_STATUS
> TP_TYPE_SERVICE_POINT_TYPE
> TP_TYPE_SOCKET_ACCESS_CONTROL
> TP_TYPE_SOCKET_ADDRESS_TYPE
> TP_TYPE_STORAGE_RESTRICTION_FLAGS
> TP_TYPE_SUBSCRIPTION_STATE
> TP_TYPE_TLS_CERTIFICATE_REJECT_REASON
> TP_TYPE_TLS_CERTIFICATE_STATE
> TP_TYPE_TUBE_CHANNEL_STATE
> TP_TYPE_TUBE_STATE
> TP_TYPE_TUBE_TYPE
> tp_access_control_type_get_type
> tp_anonymity_mode_flags_get_type
> tp_channel_call_state_flags_get_type
> tp_channel_chat_state_get_type
> tp_channel_contact_search_state_get_type
> tp_channel_group_change_reason_get_type
> tp_channel_group_flags_get_type
> tp_channel_media_capabilities_get_type
> tp_channel_password_flags_get_type
> tp_channel_text_message_flags_get_type
> tp_channel_text_message_type_get_type
> tp_channel_text_send_error_get_type
> tp_conn_mgr_param_flags_get_type
> tp_connection_alias_flags_get_type
> tp_connection_capability_flags_get_type
> tp_connection_presence_type_get_type
> tp_connection_status_get_type
> tp_connection_status_reason_get_type
> tp_contact_blocking_capabilities_get_type
> tp_contact_info_field_flags_get_type
> tp_contact_info_flags_get_type
> tp_contact_list_state_get_type
> tp_contact_metadata_storage_type_get_type
> tp_debug_level_get_type
> tp_delivery_reporting_support_flags_get_type
> tp_delivery_status_get_type
> tp_dtmf_event_get_type
> tp_file_hash_type_get_type
> tp_file_transfer_state_change_reason_get_type
> tp_file_transfer_state_get_type
> tp_handle_type_get_type
> tp_http_method_get_type
> tp_local_hold_state_get_type
> tp_local_hold_state_reason_get_type
> tp_location_features_get_type
> tp_mail_notification_flags_get_type
> tp_media_stream_base_proto_get_type
> tp_media_stream_direction_get_type
> tp_media_stream_error_get_type
> tp_media_stream_pending_send_get_type
> tp_media_stream_state_get_type
> tp_media_stream_transport_type_get_type
> tp_media_stream_type_get_type
> tp_message_part_support_flags_get_type
> tp_message_sending_flags_get_type
> tp_property_flags_get_type
> tp_rich_presence_access_control_type_get_type
> tp_sasl_abort_reason_get_type
> tp_sasl_status_get_type
> tp_service_point_type_get_type
> tp_socket_access_control_get_type
> tp_socket_address_type_get_type
> tp_storage_restriction_flags_get_type
> tp_subscription_state_get_type
> tp_tls_certificate_reject_reason_get_type
> tp_tls_certificate_state_get_type
> tp_tube_channel_state_get_type
> tp_tube_state_get_type
> tp_tube_type_get_type
> ^^^ Unused symbols
> Documentation check failed
> make[3]: *** [check-local] Error 1
> 
> Do I need to add these to a .abi file somewhere?

Not until it's released. .abi files are for libtool; these warnings are from
gtk-doc. But if they're in public headers, they need to go into
docs/reference/telepathy-glib-sections.txt — probably all into a <SUBSECTION
Standard> for the section which defines the corresponding C enum.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the telepathy-bugs mailing list