libpurple/protocols/oscar/aim.h

Mon, 01 Apr 2019 22:19:54 -0400

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Mon, 01 Apr 2019 22:19:54 -0400
changeset 39556
622bf98df0ac
parent 36775
5e59f252d777
child 39819
3554dac2991b
child 39894
7eab91ea30a1
permissions
-rw-r--r--

Remove unnecessary struct tags.

This is basically three sed's:

fd '\.[ch]$' -exec \
sed -i 's/typedef struct _[A-Za-z0-9_]\+ {/typedef struct {/g'

fd '\.[ch]$' -exec \
sed -i 's/typedef struct _[A-Za-z0-9_]\+$/typedef struct/g'

sed -i 's/struct _pidgin_blist_node/PidginBlistNode/g' pidgin/gtkblist.c

/* purple
 *
 * Purple is the legal property of its developers, whose names are too numerous
 * to list here.  Please refer to the COPYRIGHT file distributed with this
 * source distribution.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
 *
 */
#ifndef _AIM_H_
#define _AIM_H_

#include "oscar.h"

#define AIM_TYPE_PROTOCOL             (aim_protocol_get_type())
#define AIM_PROTOCOL(obj)             (G_TYPE_CHECK_INSTANCE_CAST((obj), AIM_TYPE_PROTOCOL, AIMProtocol))
#define AIM_PROTOCOL_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST((klass), AIM_TYPE_PROTOCOL, AIMProtocolClass))
#define AIM_IS_PROTOCOL(obj)          (G_TYPE_CHECK_INSTANCE_TYPE((obj), AIM_TYPE_PROTOCOL))
#define AIM_IS_PROTOCOL_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE((klass), AIM_TYPE_PROTOCOL))
#define AIM_PROTOCOL_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS((obj), AIM_TYPE_PROTOCOL, AIMProtocolClass))

typedef struct
{
	OscarProtocol parent;
} AIMProtocol;

typedef struct
{
	OscarProtocolClass parent_class;
} AIMProtocolClass;

/**
 * Registers the AIMProtocol type in the type system.
 */
void aim_protocol_register_type(PurplePlugin *plugin);

/**
 * Returns the GType for the AIMProtocol object.
 */
G_MODULE_EXPORT GType aim_protocol_get_type(void);

#endif /* _AIM_H_ */

mercurial