Commit Graph

98 Commits

Author SHA1 Message Date
Daniel Juyung Seo c01f421317 efreet: Fixed formatting.
SVN revision: 76923
2012-09-21 00:03:18 +00:00
Daniel Juyung Seo be7b396171 efreet efreet_mime.c: Changes in efreet_mime_shutdown. Decrementing init counter below 0 issue solved. Patch by Zbigniew Kosinski z.kosinski@samsung.com
On Thu, Sep 20, 2012 at 8:06 PM, Zbigniew Kosinski <z.kosinski@samsung.com> wrote:
> Hello,
>
> Right now efreet_shutdown function doesn't return values below 0.
>
> In my opinion,  efreet_mime_shutdown function should behave in the same way
> as efreet_shutdown.
>
> I have prepared patch proposal to prevent decrementing init counter below 0.
>
> Please take a look at attached file.
>
> BR,
>
> Zbigniew Kosinski

SVN revision: 76921
2012-09-20 23:33:32 +00:00
Cedric BAIL 4540fa9d0f eina: cleanup eina_file_map_lines API before release.
SVN revision: 74618
2012-07-31 07:23:16 +00:00
Sebastian Dransfeld f419175657 efreet: Add parameter checking to exported API
Some efreet APIs do not check input parameters.  So I add checking by
using EINA_SAFETY_ON_XXX().
ISO/IEC statndards says that "If an argument to a function has an
invalid value, behavior is undefined" . But this is  just for the
primitive functions such as libc.  I think that parameter checking is
needed in at least EFL exported APIs to prevent run-time abnormal
behavior.
EINA_SAFTETY_ON_XXX are better than "if (xxx) return" because it gives
error message and can be maintainable.

Patch by Bluezery, modified by me

SVN revision: 71366
2012-05-23 20:10:27 +00:00
Cedric BAIL 4fe47342e7 efreet: useless work of the day, faster loading of mime type.
SVN revision: 70931
2012-05-11 10:54:47 +00:00
Sebastian Dransfeld 93ed956adf efreet: Remove unneeded headers
SVN revision: 67403
2012-01-20 19:54:20 +00:00
Vincent Torri b43267ab25 Efreet: include inet/in.h before arpa/inet.h. Needed by the OpenBSD port
SVN revision: 65156
2011-11-14 08:33:22 +00:00
Sebastian Dransfeld 56f3b3b278 efreet: Clean headers
Might affect other systems, please just add the needed headers and don't
complain.

SVN revision: 62557
2011-08-18 07:35:48 +00:00
Carsten Haitzler 39a63149cf enable mmap safety in efreet.
SVN revision: 60978
2011-07-04 09:35:39 +00:00
Carsten Haitzler 71b7acde90 doxy -> h files.
SVN revision: 58487
2011-04-08 11:01:08 +00:00
Mike Blumenkrantz 96be628d43 use eina_log more effectively: replace all printfs with appropriate log functions and use EINA_LOG_ERR instead of ERR when log dom fails to init
SVN revision: 57858
2011-03-18 19:47:57 +00:00
Sebastian Dransfeld 582ecd7203 Fix doc
SVN revision: 56783
2011-02-07 21:19:36 +00:00
Sebastian Dransfeld da2c871e24 Remove duplicate logging macros
SVN revision: 56732
2011-02-05 19:07:07 +00:00
Sebastian Dransfeld accd246c72 Set EFREET_MODULE_LOG_DOM to -1 after unregister
SVN revision: 56731
2011-02-05 19:06:55 +00:00
Sebastian Dransfeld 6ed10251db Remove global log domain
SVN revision: 56729
2011-02-05 19:05:55 +00:00
Sebastian Dransfeld 32defc93ae don't strdup, we return const data
SVN revision: 56693
2011-02-03 19:58:04 +00:00
Sebastian Dransfeld 978741a789 doc
SVN revision: 56326
2011-01-27 17:49:45 +00:00
Christopher Michael 8719a729ab Fix missing include <Ecore.h> for needed ecore functions
(ecore_time_get, ecore_exe_run, etc, etc).



SVN revision: 55027
2010-11-26 21:32:34 +00:00
Vincent Torri 126c3574c3 fix compilation on Windows
SVN revision: 55021
2010-11-26 17:05:16 +00:00
Vincent Torri d07b011ca8 move Ecore_File.h inclusion to the source file
SVN revision: 55002
2010-11-25 23:52:57 +00:00
Sebastian Dransfeld 3624014340 Remove common included header
SVN revision: 54823
2010-11-22 20:49:08 +00:00
Sebastian Dransfeld 7545e54203 Let efreet icon return const
We return a pointer to an internal cache, so no need to do strdup. I we
implement a cache, the pointer will be a return from a mmap'ed file, so
no need to do strdup.

A bit late to do an API break, but must be done.

SVN revision: 54372
2010-11-09 20:15:55 +00:00
Gustavo Sverzut Barbieri bc2c59746d log domains in lower-case only please.
let's make it a standard so we don't have to look at the code
everytime to figure out the name...



SVN revision: 53171
2010-10-07 22:22:33 +00:00
Sebastian Dransfeld ed263df47e ecore time is double
SVN revision: 52855
2010-09-28 17:53:15 +00:00
Lucas De Marchi 67771ee617 Fix common misspellings
Following misspellings were fixed:

acheive->achieve
appart->apart
isnt->isn't
succesfully->successfully
taht->that



SVN revision: 51987
2010-09-08 11:27:59 +00:00
Sebastian Dransfeld 96daa6c974 clean whitespace
SVN revision: 51712
2010-08-29 08:47:27 +00:00
Cedric BAIL ba22eb6af8 * efreet: less warning by Albin Tonnerre.
SVN revision: 51247
2010-08-17 12:03:10 +00:00
Cedric BAIL 5efed73f07 * efreet: fix some potential source of segv.
SVN revision: 50942
2010-08-09 19:31:18 +00:00
Lucas De Marchi 0a4617ae38 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Massimiliano Calamelli 465a55b467 Leak-- using the macro
SVN revision: 50763
2010-08-03 11:44:55 +00:00
Sebastian Dransfeld b76d9490dc Fix errors reported by clang
SVN revision: 50492
2010-07-25 20:25:40 +00:00
Sebastian Dransfeld bcb8744bc0 formatting
SVN revision: 49840
2010-06-25 01:44:30 +00:00
Hannes Janetzek 1a49327928 make all strings returned by efre_mime_type_get stringshared
SVN revision: 48641
2010-05-05 20:55:14 +00:00
Sebastian Dransfeld 0423e1ea99 Formatting
SVN revision: 45865
2010-02-04 09:12:35 +00:00
Sebastian Dransfeld 0903a5be95 Add ()
SVN revision: 45200
2010-01-15 20:51:34 +00:00
David Walter Seikel 060ec41809 Make it compile again.
SVN revision: 44905
2010-01-05 02:15:41 +00:00
Christopher Michael 56ec4c946f When using snprintf or fgets, etc, do not use PATH_MAX directly as the size
of the variable...use sizeof() compiler directive (lots of these).

Do not free 'realpath' in efreet_menu if we are going to try and print out
it's value.

If we find 'realpath' in the merged_menus hash, and we are going to return,
then free the realpath variable.



SVN revision: 44699
2009-12-23 20:55:23 +00:00
Vincent Torri 285297dcdd * API break: _shutdown() functions return an int, now
* simplify a bit and fix init/shutdown functions



SVN revision: 42996
2009-10-10 06:19:13 +00:00
Cedric BAIL 703fb37368 * efreet: Prevent div by zero.
SVN revision: 42940
2009-10-07 12:57:13 +00:00
Vincent Torri 1403d26dce remoove unused variables
SVN revision: 42877
2009-10-04 22:28:12 +00:00
Cedric BAIL 05126826a3 * efreet: Use eina_log.
Patch from Matthieu.


SVN revision: 42599
2009-09-21 16:36:29 +00:00
Hannes Janetzek 51fd74a36f efreet_mime add fallback check for executables
SVN revision: 42474
2009-09-14 00:28:51 +00:00
Vincent Torri 2e38151ed8 formatting
SVN revision: 42084
2009-08-29 05:29:05 +00:00
Gustavo Sverzut Barbieri 85c2e25399 have efreet to match x-generic as well, requested by jeffdameth.
SVN revision: 41907
2009-08-21 03:03:59 +00:00
Gustavo Sverzut Barbieri 4faa46cab3 Efreet_Mime: bugfix for magic matching.
Efreet_Mime did not match last set of magics for given mime-type due to
missing check after the loop. This bug was partially masked by the
problem fixed in my previous patch.

By: Mikhail Gusarov


SVN revision: 41305
2009-07-11 14:26:53 +00:00
Gustavo Sverzut Barbieri 9aef9f5eca Efreet_Mime: fix subrules with non-zero depth.
Hello,

I've fixed a bug in parsing magic file in Efreet_Mime: if some magic
rule has a subrule with non-zero depth, then the 0 depth is used instead
for subrule. This led to nonsense like all .xml documents matched as
application/docbook+xml.

By: Mikhail Gusarov


SVN revision: 41304
2009-07-11 14:23:36 +00:00
Gustavo Sverzut Barbieri adf5c3553e use new stringshared hash, pointer was being misused since api is confusing.
The pointer type is really confusing, it was expecting pointer to
pointer what is really weird.

Cedric just added a stringshared variant that should be as fast
(removing the strcmp()) and is the api one would expect.

This fix a long standing bug I introduced (sorry!) when added the
cache, but it was bit hard to hit as if you didn't find a collision
you'd be adding to cache and never finding it. But I recently started
to use icons on desktop and for some weird reason the PDF icons
started to show in TAR :-P



SVN revision: 41113
2009-06-19 15:00:38 +00:00
Vincent Torri 361f682833 typo
SVN revision: 40260
2009-04-21 06:16:19 +00:00
Vincent Torri 1bf086809e * move header files in efree_provate.h to the source files
* fix compilation on Windows XP (not sure that Windows CE port is needed...)

note that, as ecore_exe is not available on Windows, some code have
been disables for that platform in src/lib/efreet_desktop.c. Also, a new Evil
version should be used (not in svn yet)

The compilation on Windows is needed for Ewl (icon and mime)



SVN revision: 40257
2009-04-20 23:20:40 +00:00
Vincent Torri 312a4365b8 fix header files
SVN revision: 39752
2009-03-27 11:14:21 +00:00